9.
What will TypeScript infer the type of the people variable to be in the declaration below?
let people = ['John', 'Jane', 'Jake'];
array
boolean
number
string[]
Correct: D
TypeScript will infer the type of the people variable to be an array of strings (string[]) because it's initialized with an array of string literals.