$ ./guess_the_language
Problem Solving — predict the output
Problem Solving — predict the output · easy · #84
What is logged?
console.log(+true, +'', +'3');
1 0 3
true 0 3
1 NaN 3
1 0 '3'
Unary + converts to a number: true is 1 and the empty string is 0.
Play Problem Solving ▸
◂ #83
all Problem Solving — predict the output questions
#85 ▸