---
title: "Discussion on \"Difference Between =, ==, and === in JavaScript\" | Hashnode"
description: "Discussion on \"Difference Between =, ==, and === in JavaScript\". Introduction to the operators\n\n= is used for assigning values to a variable in JavaScript.\n== is used for comparison between two variables irrespective of the datatype of the variable.\n=== is used for comparison between two variables but this will ch..."
url: "https://hashnode.com/posts/difference-between-and-in-javascript/60895a8472387b583d14938a"
---

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

Discussion

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

Introduction to the operators = is used for assigning values to a variable in JavaScript. == is used for comparison between two variables irrespective of the datatype of the variable. === is used for comparison between two variables but this will ch...

Apr 28, 2021 · 2 min read · destiny.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#beginners-learningtocode-100daysofcode](https://hashnode.com/tag/beginners-learningtocode-100daysofcode)
-   [#100daysofcode](https://hashnode.com/tag/100daysofcode)

## Written by

[Aigbe Destiny](https://hashnode.com/@destiny1)

@destiny1

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

I'm an aspiring software developer currently learning ruby on rails

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
