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)