TypeScript · Junior · Question 51 of 75
What does the noImplicitAny option report?
function greet(name) {
return 'Hi ' + name;
}- ✓Correct answer: Parameters and variables whose type would silently become
anybecause nothing could be inferred - 2Every use of the
anykeyword - 3Functions without a return statement
Explanation
Here name would be any. The flag is part of strict. Writing any explicitly is still allowed, but it's a visible decision.