what is the difference between '==' and '===' ?

For example

var name1 = 'shruthi';
var name2 = 'SHRUTHI';

if(name1 == name2) ---> returns true because this is not case sensitive.

if(name1 === name2) ---> returns false because this is case sensitive.

1 comment:

  1. === is mandatory with strict mode in javascript

    ReplyDelete

Overview of AngularJS

AngularJS is an open source web application framework. It is now maintained by Google . The most of the code can be eliminated by using th...