1. Home
  2. Computer Science MCQs
  3. Javascript
  4. Which JavaScript operator compares both value and type…

Added 2 Nov 2026

Which JavaScript operator compares both value and type, without type conversion?

  1. === Correct answer
  2. !==
  3. =
  4. ==

Correct answer

A. ===

15 views

MCQSEXAM

Explanation

Strict equality (===) returns true only when type and value both match, so 5 === "5" is false. Loose equality (==) converts types first, which can give surprising results, and !== is strict inequality.

Reference

Asked in: Frontend Developer Tests, Technical Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Javascript MCQs

Practise all Javascript MCQs

Similar MCQs