- A "Hello 10"
- B "10 Hello"
- C "10"
- D "Hello10Hello"
- Share this MCQ
Answer:
A
Share this MCQ
In JavaScript, the +
operator can be used to concatenate strings.
In this case, the +
operator is used to concatenate the string "Hello"
with the number 10
Since one of the operands is a string, the +
operator will treat both operands as strings and perform string concatenation.
The result will be the string "Hello10"
Share this MCQ