---
title: "Discussion on \"var,let and const in javascript\" | Hashnode"
description: "Discussion on \"var,let and const in javascript\". There are three ways of declaring a variable in Javascript.The oldest one is using the var keyword , let and const were introduced in ES6 .\nTo declare a variable , first write the keyword var,let or const then variable name.\n  var a = 10;\nWith var an..."
url: "https://hashnode.com/posts/varlet-and-const-in-javascript/6331aa2867534f360ca94d51"
---

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

Discussion

# [var,let and const in javascript](https://vivek18.hashnode.dev/varlet-and-const-in-javascript?utm_source=hashnode&utm_medium=feed)

There are three ways of declaring a variable in Javascript.The oldest one is using the var keyword , let and const were introduced in ES6 . To declare a variable , first write the keyword var,let or const then variable name. var a = 10; With var an...

Sep 26, 2022 · 1 min read · vivek18.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#variables](https://hashnode.com/tag/variables)
-   [#var-let-const](https://hashnode.com/tag/var-let-const)

## Written by

[Vivek Shirsath](https://hashnode.com/@vivek18)

@vivek18

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
