Message from JavaScript discussions

July 2017

— Try until u succeed

— 

The code in parens runs, does assignment, and then is evaluated for truthiness because of where it is

— If try is not defined then it would run again and again

— Because !undefined is true

— It's like if (var myBool = true) which works the same

— So it says, while that method returns false, continue looping

— It's bad for a number of reasons, but it works

— So wait what does assignment evaluate too

— This says if (true) to the parser

— I tried in in node and it's confusing

— Not in JS or PHP

— If try is not defined , it wont stop looping i guess