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 the difference between window.onload and ondocumentready?
How to create an object using javascript?
How to delete an array entry using javascript?
How can you declare a class in javascript?
What is dom in javascript?
What is decodeuri() function?
Are Typescript and Javascript the same?
What is variable typing?
How can an HTMLCollection be traversed?
What is the difference between .call() and .apply()?
How do you change the style/class on any element?
How to make elements invisible?
what is the difference between window & document in javascript?
How to add buttons in javascript?
What is a prompt box in javascript?