3 ms·
> Realize in C and JS and most languages, the standard equality '=' operator, does exactly this. > For example, console.log(2(a = 10)) would print 20 while set
by reificator 8y ago
> Realize in C and JS and most languages, the standard equality '=' operator, does exactly this.
> For example, console.log(2(a = 10)) would print 20 while setting a to 10*
`=` is the assignment operator, not the equality operator. The equality operator is `==` in C and `===` in JS.
- goldenkey 8y agoYou are correct, my mistake.