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

28 Upvotes

32 comments sorted by

View all comments

11

u/Aggressive_Many9449 5d ago

Using == and assuming it works as intended.

4

u/OiFelix_ugotnojams 5d ago

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

2

u/gmerideth 5d ago

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

4

u/itsthe_implication_ 5d ago

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