16.
Which of the following types is the type of the message parameter in the following function?
function showMessage(message: string | number) {
console.log(message);
}
object
boolean
number
string
Correct: C, D
The type of the message parameter in the function showMessage is string or number. This means that the message parameter can accept values of type string or number.