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

What is the use of isNaN function?

996


What are Cookies in Javascript?

1063


How long does it take to learn javascript?

986


How to add/remove properties to object dynamically in javascript?

993


What is enum size?

910


How do you add an element at the beginning of an array?

1007


How to prevent modification of an object in Javascript?

1257


Are java and javascript same?

1055


What is missing in my code? function numberTally(numList) { var evenTotal = 0; var oddTotal = 0; for (var i = 0; i <= numList.length; i++) { if i % 2 { // i is odd oddTotal += numList[i]; // or oddTotal = oddTotal + numList[i]; } else { // i is even evenTotal + numList[i]; } } alert(oddTotal); return evenTotal; }

3384


What is a method in javascript?

1042


Does javascript support foreach loop?

1046


What is closure?

1168


How we can get the value of an element using javascript?

1048


How many types of variables are there in javascript?

986


How to get an element by class in javascript ?

1177