$ ./guess_the_language
Problem Solving — predict the output
Problem Solving — predict the output · easy · #52
What is the output?
console.log('5' * '2');
10
'52'
52
NaN
The * operator has no string meaning, so both sides convert to numbers.
Play Problem Solving ▸
◂ #51
all Problem Solving — predict the output questions
#53 ▸