Can anyone explain the meaning of the assign operator? What does it mean?
It came out as true but I’m unclear on how we reached to there.
Thanks!
var x = 0 !=1;
>Solution :
Order of operations (var x = (0 != 1))
Imagine you computed just 0 != 1. This is evidently a true statement, so this would evaluate to true. If you set x to the evaluation of 0 != 1, then you receive var x = true.