What is the result of the comparison operator === if the operands are of different types?
- FALSE
- TRUE
- Undefined
- Error
The comparison operator === (strict equality) in JavaScript returns true if the operands are of different types and have the same value. JavaScript performs type coercion with ==, but === strictly checks both value and type.
Loading...
Related Quiz
- Considering JavaScript's type coercion, what will be the result of [] == ![]?
- Why might for...of loops be preferred when working with asynchronous code?
- What is the primary purpose of using AJAX in web development?
- The for...in loop will also iterate over the _______ properties of an object.
- How can you prevent script injection attacks when dynamically modifying element content with user input?