Which is the better way for conditional variable assignment?
1st method
if (true) { var myVariable = \'True\'; } else { var myVariable = \'False\
Third way when you are storing only true false in variabel then use
var myVariable =(condition_written_in_if);