TypeScript · Junior · Question 69 of 75

Are Array<string> and string[] different types?

Explanation

Teams usually pick one style for consistency. For read-only arrays the equivalents are ReadonlyArray<string> and readonly string[].

Further reading

Problem with a question

TypeScript · Junior · question 69

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