- A "hello"
- B "HELLO"
- C "Hello"
- D TypeError
- Share this MCQ
Answer:
B
Share this MCQ
The toUpperCase()
method in JavaScript is a string method that converts all the characters in a string to uppercase.
In this case, the toUpperCase()
method is called on the string "Hello", which converts all the characters in the string to uppercase.
The result is the string "HELLO"
, which is logged to the console.
Share this MCQ