Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Explain the difference between == and === in JavaScript.

Answer Posted / hr@tgksolutions.com

• == (Abstract Equality) compares values without considering data type (performs type coercion).
o Example: 5 == "5" → true
• === (Strict Equality) compares both value and type.
o Example: 5 === "5" → false

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When would you use var in your declaration and when you wouldn’t?

873


What are the requirements of web application using javascript?

961


What is a closure in javascript?

960


Is null === undefined?

865


How to get value of an element by class in javascript ?

888


Is JavaScript case sensitive? Give an example?

970


why we need java instead of c

1596


What does javascript do?

830


How to test a string as a literal and as an object ?

1026


Where should I put script tags?

821


Is a parabola a function?

842


Is javascript array dynamic?

863


What is hoisted in javascript?

906


What are the uses of javascript in web page designing?

799


How can a page be forced to load another page in javascript?

1046