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 datatype 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.