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)