22.
What is the inherited type for the variable greet in const greet = ['Hello World!']?
number[]
Array<string>
Array<number>
text
Correct: B
The inherited type for the variable greet in const greet = ['Hello World!'] is Array<string>. This is because the variable is initialized with an array containing a single string value, 'Hello World!'.