---
title: "Discussion on \"Difference between '==' and '===' in JavaScript.\" | Hashnode"
description: "Discussion on \"Difference between '==' and '===' in JavaScript.\". what is '==' ?\nDouble equals (==) is a comparison operator, which transforms the operands having the same type before comparison. In the example given below, '1' is a string but as we used == it converts the string to a number and returns true.\n1 == ..."
url: "https://hashnode.com/posts/difference-between-and-in-javascript/63eb2c7e1f1cce5109910f82"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Difference between '==' and '===' in JavaScript.](https://techstick.hashnode.dev/difference-between-and-in-javascript?utm_source=hashnode&utm_medium=feed)

what is '==' ? Double equals (==) is a comparison operator, which transforms the operands having the same type before comparison. In the example given below, '1' is a string but as we used == it converts the string to a number and returns true. 1 == ...

Feb 14, 2023 · 2 min read · techstick.hashnode.dev  
Read the article

## Written by

[shubham tiwari](https://hashnode.com/@Techstick)

@Techstick

  
[View profile](https://hashnode.com/@Techstick)

Coding is a meme game.

## Responses 1

Markdown supported · ⌘↵ to post

[Arun Shukla](https://hashnode.com/@Anshu07)

[Feb 14, 2023](https://hashnode.com/posts/difference-between-and-in-javascript/63eb2c7e1f1cce5109910f82/comment/63eb3198aa963d3ff44113f4)

😂 Proper explanation h bro specially strict equality operator me jo meme use kia h AB wala best h

[shubham tiwari](https://hashnode.com/@Techstick)

[Feb 14, 2023](https://hashnode.com/posts/difference-between-and-in-javascript/63eb2c7e1f1cce5109910f82/comment/63eb3198aa963d3ff44113f4#reply-63eb389daa963d3ff44115ec)

Thanks bhai 😂
