Output of '2'+'2'-'2' and prefix expressions
Filed under Tata Digital
The question
Determine the output of specific code expressions, such as prefix/postfix expressions and JavaScript type coercion like console.log('2'+'2'-'2').
No write-up yet. Related questions below have one.
Related Tata Digital questions
Collected from public candidate posts and coding forums. Updated Nov 2026.