DEV Community

Azaan Suhail
Azaan Suhail

Posted on

Day 3 of Complete JavaScript in 17 days | Visual Series📚✨

Day 3 of My JavaScript Visual Series 📚✨

All JavaScript Operators - cracked in one Go

Operators in JS aren't just +, -, or .
Today I explored all of them — and the logic behind each one 🔍
✅ Categories I covered:
🔹 Arithmetic: +, -, *, /, %, *

🔹 Assignment: =, +=, -=, etc.
🔹 Comparison: ==, ===, !=, !==, >, <, >=, <=
🔹 Logical: &&, ||, !
🔹 Ternary: condition ? true : false
🔹 Bitwise: &, |, ^, ~, <<, >>, >>>
🔹 Nullish Coalescing: ??

🔹 String + Operators

→ null == undefined ✅
→ null === undefined ❌
→ null >= 0 ✅ but null > 0 ❌
→ undefined becomes NaN when compared with numbers 😮

💥 Mind-blowing interview edge:

null is loosely equal to undefined

Read this GFG article : https://lnkd.in/gdq_gPZf

Top comments (0)