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

Which is better typescript or javascript?

914


Why is javascript so popular?

950


What is new function in javascript?

1038


What is the difference between == and ===? Which one would you use?

1077


How to add multiple functions in javascript?

902


How to make a function in javascript?

929


Why is my javascript function not defined?

995


Can you assign an anonymous function to a variable and pass it as an argument to another function?

874


Is python better than javascript?

872


Why is javascript not oop?

917


Is javascript necessary?

855


What are the different objects used in javascripts?

959


What are the distinct types of error name values?

978


How to add html elements dynamically with JavaScript?

975


What is the scope of a function?

994