In a java script, what is the difference between "==" and "===" operator?



In a java script, what is the difference between "==" and "===" operator?..

Answer / Navneet Kuamr

In JavaScript, '==' performs type coercion when comparing values, while '===' does not. If you use '==', it will compare values and their types, but if you use '===', it will only compare values without any coercion.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

where we use javascript and for which purpose we use javascript how?

13 Answers   Bugatti, IBM, Infosys, TCS,


How much does a javascript developer make?

1 Answers  


What is nodetype in javascript?

1 Answers  


What are the variables in javascript?

1 Answers  


What kind of conditional statements does JavaScript support?

1 Answers  


Who is the world famous hacker?

1 Answers  


What is javascript ‘strict mode’?

1 Answers  


What would be the result of 3+2+”7″?

1 Answers  


Can an anonymous function be assigned to a variable?

1 Answers  


What are events in javascript?

1 Answers  


What are all the types of Pop up boxes available in JavaScript?

1 Answers  


What is prototype in javascript and how do you use it?

1 Answers  


Categories