$ ./guess_the_language
Problem Solving — predict the output
Problem Solving — predict the output · medium · #151
What is the output?
const xs: number[] = [1, 2]; console.log(xs.length + '!');
2!
!2
12!
NaN!
Types vanish at runtime; number + string concatenates to "2!".
Play Problem Solving ▸
◂ #150
all Problem Solving — predict the output questions
#152 ▸