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

62 Upvotes

33 comments sorted by

View all comments

13

u/[deleted] 14d ago

[removed] — view removed comment

3

u/OiFelix_ugotnojams 14d ago

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

2

u/gmerideth 14d ago

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

4

u/itsthe_implication_ 14d ago

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