Skip to main content

Command Palette

Search for a command to run...

Javascript : == and === operator ?

Published
1 min read
S

I love learning about technology and sharing that with others

Motivation

Learning the basics of the language

== --> only compares values === --> compares values and datatype , if both same then only true

Example


var x=2;
var y="2";

console.log(x==y);   //true
console.log(x===y);   //false
20 views

More from this blog

H

hashcodehub

271 posts

Consistent, Passionate and Organized :)