---
title: "Discussion on \"The Sneaky Side of const in JavaScript: Redefining vs Redeclaring\" | Hashnode"
description: "Discussion on \"The Sneaky Side of const in JavaScript: Redefining vs Redeclaring\". In JavaScript, we have three ways to declare variables: var, let, and const. While var and let are relatively straightforward, const has some nuances that can catch developers off guard. Specifically, there is a difference between redeclaring a const..."
url: "https://hashnode.com/posts/the-sneaky-side-of-const-in-javascript-redefining-vs-redeclaring/63eef4df46e2f1644c4f2660"
---

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

Discussion

# [The Sneaky Side of const in JavaScript: Redefining vs Redeclaring](https://gautam-balamurali.hashnode.dev/the-sneaky-side-of-const-in-javascript-redefining-vs-redeclaring?utm_source=hashnode&utm_medium=feed)

In JavaScript, we have three ways to declare variables: var, let, and const. While var and let are relatively straightforward, const has some nuances that can catch developers off guard. Specifically, there is a difference between redeclaring a const...

Feb 17, 2023 · 2 min read · gautam-balamurali.hashnode.dev  
Updated Mar 1, 2023  
Read the article

-   [#es6](https://hashnode.com/tag/es6)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#neogcamp](https://hashnode.com/tag/neogcamp)

## Written by

[Gautam Balamurali](https://hashnode.com/@ashcod)

@ashcod · India

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

Trying to understand recursion to understand what is recursion.

A software engineer trying to document his journey of learning.

## Responses 2

Markdown supported · ⌘↵ to post

[Bhumika Singh](https://hashnode.com/@bhumika27)

[Mar 2, 2023](https://hashnode.com/posts/the-sneaky-side-of-const-in-javascript-redefining-vs-redeclaring/63eef4df46e2f1644c4f2660/comment/6401050e52d0c16bb22218c1)

Well written Gautam, keep writing 🙌🏻

[Gautam Balamurali](https://hashnode.com/@ashcod)

[Mar 3, 2023](https://hashnode.com/posts/the-sneaky-side-of-const-in-javascript-redefining-vs-redeclaring/63eef4df46e2f1644c4f2660/comment/6401050e52d0c16bb22218c1#reply-64016de34afe53670a9e42aa)

Thanks buddy 🫂. It really means a lot 🥺.

[Syed Mustassim Mustaq](https://hashnode.com/@mustassim)

[Feb 28, 2023](https://hashnode.com/posts/the-sneaky-side-of-const-in-javascript-redefining-vs-redeclaring/63eef4df46e2f1644c4f2660/comment/63fe51ec14fb322d0b6d98dc)

Quite sneaky indeed! Well written, Gautam!

[Gautam Balamurali](https://hashnode.com/@ashcod)

[Mar 3, 2023](https://hashnode.com/posts/the-sneaky-side-of-const-in-javascript-redefining-vs-redeclaring/63eef4df46e2f1644c4f2660/comment/63fe51ec14fb322d0b6d98dc#reply-64016dc94afe53670a9e42a5)

Thanks buddy 🫂. It really means a lot 🥺.
