TypeScript · Junior · Question 61 of 75

What type does const items = []; get with strict enabled?

Explanation

Explicit annotation documents intent and prevents surprises when the array is returned or passed elsewhere.

Further reading

Problem with a question

TypeScript · Junior · question 61

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