DEV Community

Mehul Lakhanpal
Mehul Lakhanpal

Posted on • Originally published at codedrops.tech

Difference between double equal and triple equal

// Double equal - Converts both the operands to the same type and then compares
console.log(0 == '0'); // true

// Triple equal - Does not convert to same type
console.log(0 === '0'); // false
Enter fullscreen mode Exit fullscreen mode

Thanks for reading 💙

Follow @codedrops.tech for daily posts.

InstagramTwitterFacebook

Micro-Learning ● Web Development ● Javascript ● MERN stack ● Javascript

codedrops.tech

Top comments (0)