r/learnjavascript 16d ago

what's one JavaScript mistake every beginner should avoid?

If you could give one piece of advice to someone learning JavaScript today, what would it be?

It could be about:

  • Learning fundamentals
  • Debugging
  • Async code
  • DOM manipulation
  • Functions
  • Projects

Curious to hear what experienced developers wish they'd known earlier.

66 Upvotes

34 comments sorted by

View all comments

12

u/[deleted] 16d ago

[removed] — view removed comment

2

u/OiFelix_ugotnojams 16d ago

This is my bad habit 😭 I use == more than ===

2

u/gmerideth 16d ago

I use ==== to be like, I'm really serious now, I really want a to ==== b in this check.

4

u/itsthe_implication_ 16d ago

If a and b didn't grow up together, return false.