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

0



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.

Tags

Post a Comment

0Comments
Post a Comment (0)