Explain the difference between == and === in JavaScript.
• == (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 |
Is javascript pure object oriented?
What is a module code?
Why global variables are bad javascript?
Does javascript support automatic type conversion?
What is a null variable?
What are the various functional components in javascript?
What are the main functions performed by javascript statements?
How to create 3-dimensional Array in Javascript?
Are java and javascript same?
What are classes in javascript?
How to delete an array entry using javascript?
What is nodetype in javascript?