---
title: "Discussion on \"Var, Let, and Const in JavaScript\" | Hashnode"
description: "Discussion on \"Var, Let, and Const in JavaScript\". Types of variables\n\nVar --> function scoped\nLet --> block scoped\nConst --> block scoped\n\nVar\nWhen a Var  variable is declared outside the function , it becomes globally scoped .\nIf they are inside a function we only can access them inside the functio..."
url: "https://hashnode.com/posts/var-let-and-const-in-javascript/60e2b74603707d644a504680"
---

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

Discussion

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

Types of variables Var --> function scoped Let --> block scoped Const --> block scoped Var When a Var variable is declared outside the function , it becomes globally scoped . If they are inside a function we only can access them inside the functio...

Jun 4, 2021 · 1 min read · omkarborude.hashnode.dev  
Read the article

-   [#variables](https://hashnode.com/tag/variables)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#functional-programming](https://hashnode.com/tag/functional-programming)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Omkar borude](https://hashnode.com/@omkarpro)

@omkarpro · Pune

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

Frontend Developer

Hey , here's a little something about me.😊 I've been building best in class Web / Mobile apps since when I was 18 year old, I've made countless side projects using magical powers of Reactjs to build delightful user interfaces. experienced in building responsive, accessible websites and web applications using JavaScript, React, TypeScript, Redux-Toolkit e

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
