0 votes
158 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 246 views
0 votes
0 answers 109 views
0 votes
1 answer 104 views
0 votes
1 answer 113 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!

5.7k questions

5.1k answers

108 comments

557 users

...