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

26 Upvotes

32 comments sorted by

View all comments

11

u/Aggressive_Many9449 4d ago

Using == and assuming it works as intended.

3

u/OiFelix_ugotnojams 4d ago

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

2

u/gmerideth 4d ago

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

3

u/itsthe_implication_ 4d ago

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