Is there a difference other than preference between performing evaluations forwards rather than backwards?
For instance, say we wanted to check if a value was an empty string (poorly in this example, admittedly) we could do one of two things:
"" === myValue
or
myValue === ""
Is one of these more correct than the other? I personally prefer the second way as it is more semantic and easier to read, but I've noticed a lot of Java developers who write small bits of JavaScript tend to write it the first way.
Also please let me know if there is a better place to ask this, I couldn't find one but I am happy to re-post this in a different board.