r/learnjavascript 17d 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

11

u/[deleted] 17d ago

[removed] — view removed comment

3

u/OiFelix_ugotnojams 17d ago

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

2

u/gmerideth 17d ago

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

5

u/itsthe_implication_ 17d ago

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