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
What is JavaScript?
What is the dollar sign in javascript?
What is the difference between client side javascript and server side javascript.
What is the default data type in javascript?
How use javascript html?
How long does it take to get good at javascript?
How do I turn on javascript?
What is global variable in javascript?
What is hoisting in javascript?
Is javascript faster than asp script?
How do you submit a form using JavaScript?
What is javascript? List some data types supported by javascript?
What is eval() in javascript?
What are the datatypes in javascript?
How to Object.entries( ) In JavaScript ?