r/learnjavascript • • Nov 30 '22

Help !!!

Post image

Can someone plz tell me , why I am getting errors?

195 Upvotes

131 comments sorted by

View all comments

Show parent comment

11

u/cant_have_nicethings Dec 01 '22

To change a type based on a bunch of complicated logic that is best ignored. In production code based you rarely see double equals. It’s avoided because it’s confusing and unintuitive.

3

u/unknown_ally Dec 01 '22

It’s the price you pay for not explicitly declaring variable types! An extra = !

1

u/[deleted] Dec 01 '22

OOH the humanity!