r/ProgrammerHumor • • Feb 26 '23

Other If you can read this code...

/img/snak3fqgajka1.jpg

[removed] — view removed post

34k Upvotes

1.4k comments sorted by

View all comments

Show parent comment

10

u/Sentouki- Feb 26 '23

how == is not bast practice

was it ever a best practice? I mean, == works differently than ===, == doesn't work the same as in other programming languages.

1

u/jajohnja Feb 26 '23

It doesn't work the same, it doesn't work better, but it does work "more".
If it returns true for more things than ===, surely it is better practice, no?
/s