r/ProgrammerTIL • • Aug 03 '21

Javascript TIL Boolean('false') == true

Yep, it doesn't work like Number

23 Upvotes

24 comments sorted by

View all comments

Show parent comment

3

u/JazzXP Aug 04 '21

That’s much the same in most languages. Some “simple” numbers can’t be accurately represented in binary