---
title: "What is the difference between == and === ?"  
description: "What is the difference between == and === ?"  
author: "Vijay Shukla"  
published: 2012-12-07  
updated: 2020-09-17  
canonical: https://www.mindstick.com/interview/1591/what-is-the-difference-between-and  
category: "javascript"  
tags: ["javascript"]  
reading_time: 1 minute  

---

# What is the difference between == and === ?

The 3 equal signs mean "equality without type coercion". Using the triple equals, the values must be equal in type as well.

== is equal to\
=== is exactly equal to (value and type)\
0==false // true\
0===false // false, because they are of a different type\
1=="1" // true, auto type coercion\
1==="1" // false, because they are of a different type

## Answers

### Answer by Vijay Shukla

The 3 equal signs mean "equality without type coercion". Using the triple equals, the values must be equal in type as well.

== is equal to\
=== is exactly equal to (value and type)\
0==false // true\
0===false // false, because they are of a different type\
1=="1" // true, auto type coercion\
1==="1" // false, because they are of a different type


---

Original Source: https://www.mindstick.com/interview/1591/what-is-the-difference-between-and

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
