Breaking

Tuesday, August 28, 2018

What is difference between equal, double equal and triple equal in javascript




In this article, we will see the difference between =, == and === in javascript.

1.  =  is used for assigning values to a variable in JavaScript.

2.  == is used for comparison between two variables irrespective of the data type of variable.

3. === is used for comparison between two variables but this will check strict type, which means it will check datatype and compare two values.

No comments:

Post a Comment

Post Top Ad

Your Ad Spot

Pages