TypeScript · Junior · Question 51 of 75

What does the noImplicitAny option report?

function greet(name) {
  return 'Hi ' + name;
}

Explanation

Here name would be any. The flag is part of strict. Writing any explicitly is still allowed, but it's a visible decision.

Further reading

Problem with a question

TypeScript · Junior · question 51

Test yourself

Take the TypeScript · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz