0 votes
455 views
in Javascript by (2.0k points)
edited

What is the difference between == and ===?

1 Answer

0 votes
by (2.0k points)
selected by
 
Best answer
The == operator checks equality only whereas === checks equality, and data type, i.e., a value must be of the same type.

Related questions

0 votes
1 answer 574 views
0 votes
0 answers 244 views
0 votes
1 answer 416 views
0 votes
1 answer 367 views

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

Recent Badges

Doubtly Earned a badge
MrRam Earned a badge
Ritesh Maurya Earned a badge

5.7k questions

5.1k answers

108 comments

648 users

...