$ ./guess_the_language
Problem Solving — predict the output
Problem Solving — predict the output · medium · #37
What is the output?
const n = 7; console.log(n % 2 === 0 ? "even" : "odd");
even
odd
true
1
7 is not divisible by 2, so the ternary returns "odd".
Play Problem Solving ▸
◂ #36
all Problem Solving — predict the output questions
#38 ▸