27.
What is the output of the following code?
console.log(5 + "5");
"10"
55
10
"55"
Correct: D
When JavaScript encounters the + operator between a number and a string, it performs a concatenation rather than an addition. In this case, the number 5 is implicitly converted to a string and then concatenated with the string "5". As a result, the output will be the concatenation of the two strings, which is "55".