---
title: "Discussion on \"Use let  Instead Of  var Keyword\" | Hashnode"
description: "Discussion on \"Use let  Instead Of  var Keyword\". One of the biggest problems with declaring variables with the var the keyword is that you can easily overwrite variable declarations:\nvar camper = \"James\";\nvar camper = \"David\";\nconsole.log(camper);\n\nIn the code above, the camper the variable is orig..."
url: "https://hashnode.com/posts/use-let-instead-of-var-keyword/63ca7fd00508743277fc5624"
---

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

Discussion

# [Use let Instead Of var Keyword](https://lets-do-this.hashnode.dev/use-let-instead-of-var-keyword?utm_source=hashnode&utm_medium=feed)

One of the biggest problems with declaring variables with the var the keyword is that you can easily overwrite variable declarations: var camper = "James"; var camper = "David"; console.log(camper); In the code above, the camper the variable is orig...

Jan 20, 2023 · 1 min read · lets-do-this.hashnode.dev  
Read the article

-   [#es6](https://hashnode.com/tag/es6)
-   [#difference-between-let-var-and-const](https://hashnode.com/tag/difference-between-let-var-and-const)
-   [#variables](https://hashnode.com/tag/variables)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Akhil rathipelly](https://hashnode.com/@rathipellyakhil07)

@rathipellyakhil07 · hyderabad

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

Fullstack developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
