What is === operator in JavaScript and how it is different from == operator?

 Posted by Virendradugar on 12/16/2009 | Category: JavaScript Interview questions | Views: 3501
Answer:

=== operator checks for the equality. It gives true when both the compared values are having same value and same data type As === does not perform any type conversion while comparing.

It is different from == as == does the type conversion while comparing.

Thanks,
Virendra Dugar


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Akiii on: 7/11/2011 | Points: 10
Unique question..

Thanks
Akiii

Login to post response