15.
What is the type of the message parameter in the following function?
function showMessage(message: string) {
console.log(message);
}
object
boolean
number
string
Correct: D
The type of the message parameter in the function showMessage is string. This means that the message parameter can only accept values of type string.