var str1 = "string1" + (false)?"string2":"string3"; // output: string2
var str2 = "string1" + (true)?"string2":"string3"; // output: string2
Why do these expressions evaluate to "string2" regardless of true/false in the condition?
What happens to "string1" and "string3" ? How exactly are these expressions being evaluated?