DEV Community

Aleksei Aleinikov
Aleksei Aleinikov

Posted on

🧩 Still struggling with = vs ==? You’re not alone.

In 2025, rookie coding mistakes are rarely about logic — they’re about invisible rules.

⚠️ Common traps that still trip up new devs:

  1. if (score = 10) ← assignment, not comparison
  2. console.log("false") ← still truthy
  3. Off-by-one loops
  4. Floating-point decimals: 0.1 * 3 → 0.30000000000000004
  5. Asynchronous surprises: fetch() returns later

✅ With clear examples and mental models — not just syntax rules.

📖 Full guide here:
https://javascript.plainenglish.io/top-10-rookie-coding-mistakes-to-avoid-in-2025-4e2c6f42ec5f

Top comments (0)