Let's say I have a variable x and I want to check if x equals string 'y'.
Is there any difference if I did either of:
- x === 'y'
- 'y' === x
Or let's say that I want to check if y is bigger than x:
- x < y
- y > x
The difference can be anything, in terms of how the code is executed, and which is preferable, not only in terms of performance, if any, but also readability.