---
title: "Discussion on \"Difference between == VS ===\" | Hashnode"
description: "Discussion on \"Difference between == VS ===\". const Num1 = 1;\nconst Num2 = 1;\nconsole.log(Num1 == Num2); //output is true\nconsole.log(Num1 === Num2); // output is true\n\n💡 Now you will say, What’s new in this!!!!\n**const Num1 = 1;\nconst string = “1”; // string is here\nconsole.log(Num1 == Num2); ..."
url: "https://hashnode.com/posts/difference-between-vs/640ada58c435733ec300f2a9"
---

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

Discussion

# [Difference between == VS ===](https://shabrezdev.hashnode.dev/difference-between-vs?utm_source=hashnode&utm_medium=feed)

const Num1 = 1; const Num2 = 1; console.log(Num1 == Num2); //output is true console.log(Num1 === Num2); // output is true 💡 Now you will say, What’s new in this!!!! \*\*const Num1 = 1; const string = “1”; // string is here console.log(Num1 == Num2); ...

Mar 10, 2023 · 1 min read · shabrezdev.hashnode.dev  
Read the article

-   [#equality-operator-in-javascript](https://hashnode.com/tag/equality-operator-in-javascript)
-   [#strict-equality-operator](https://hashnode.com/tag/strict-equality-operator)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#operators](https://hashnode.com/tag/operators)

## Written by

[Shabrez G](https://hashnode.com/@shabrez)

@shabrez

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
