---
title: "Discussion on \"Let and Const in JavaScript\" | Hashnode"
description: "Discussion on \"Let and Const in JavaScript\". Let's learn about let and const variables\nBefore ES6, the only way you can create a variable in javascript was by using the var keyword:\n\nvar x = 10;\n\nSince ES6, there are two new keywords, let and const. Below is an example to show their usage:\n\nlet..."
url: "https://hashnode.com/posts/let-and-const-in-javascript/60daf847f4984338ee7cb080"
---

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

Discussion

# [Let and Const in JavaScript](https://negi.hashnode.dev/let-and-const-in-javascript?utm_source=hashnode&utm_medium=feed)

Let's learn about let and const variables Before ES6, the only way you can create a variable in javascript was by using the var keyword: var x = 10; Since ES6, there are two new keywords, let and const. Below is an example to show their usage: let...

Jun 29, 2021 · 3 min read · negi.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#js](https://hashnode.com/tag/js)
-   [#variables](https://hashnode.com/tag/variables)
-   [#ecmascript](https://hashnode.com/tag/ecmascript)
-   [#es6](https://hashnode.com/tag/es6)

## Written by

[Suraj Negi](https://hashnode.com/@ersurajnegi)

@ersurajnegi

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

A Programmer, busy debugging loop of LIFE!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
