Which is the better way for conditional variable assignment?
1st method
if (true) { var myVariable = \'True\'; } else { var myVariable = \'False\
Another cool thing is that you can do multiple assignment based on a conditional:
let [long_str, short_str] = a.length > b.length ? [a, b] : [b, a]