$ ./guess_the_language
Problem Solving — predict the output
Problem Solving — predict the output · hard · #153
What is the output?
enum E { A = 1, B } console.log(E.B, E[1]);
2 A
1 A
2 B
1 B
B auto-increments to 2, and numeric enums also map values back to names.
Play Problem Solving ▸
◂ #152
all Problem Solving — predict the output questions
#154 ▸