---
title: "Discussion on \"Difference between var, let, and const keywords in JavaScript\" | Hashnode"
description: "Discussion on \"Difference between var, let, and const keywords in JavaScript\". Understand the difference between var, let, and const keywords in relation to their variable scope. Know which keyword is the safest to use to avoid bugs."
url: "https://hashnode.com/posts/difference-between-var-let-and-const-keywords-in-javascript/634a8717490775613f9190a0"
---

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

Discussion

# [Difference between var, let, and const keywords in JavaScript](https://geraldev.hashnode.dev/difference-between-var-let-and-const-keywords-in-javascript?utm_source=hashnode&utm_medium=feed)

Understand the difference between var, let, and const keywords in relation to their variable scope. Know which keyword is the safest to use to avoid bugs.

Oct 15, 2022 · 6 min read · geraldev.hashnode.dev  
Read the article

-   [#variable-keywords](https://hashnode.com/tag/variable-keywords)
-   [#variables](https://hashnode.com/tag/variables)
-   [#var-let-const](https://hashnode.com/tag/var-let-const)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#scope](https://hashnode.com/tag/scope)

## Written by

[Gerald Ofokansi](https://hashnode.com/@Geraldev)

@Geraldev · Nigeria

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

Frontend Web developer. Forever learning JavaScript

Front-end Web developer. Here to share my knowledge of everything front-end development.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
