---
title: "Discussion on \"JavaScript L-3\" | Hashnode"
description: "Discussion on \"JavaScript L-3\". Block Scope.\n\"let\" and \"const\" are BLOCK scoped.\n\"var\" is FUNCTION scope.\n{\n   let firstName=\"ABC\";\n   console.log(firstName);\n}\n//here let can only be inside that block \n//if i write print statement outside block and not inside block then it will no..."
url: "https://hashnode.com/posts/javascript-l-3/63d6bdcd82d5932c29cc5c66"
---

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

Discussion

# [JavaScript L-3](https://techbyjeevika.io/javascript-l-3?utm_source=hashnode&utm_medium=feed)

Block Scope. "let" and "const" are BLOCK scoped. "var" is FUNCTION scope. { let firstName="ABC"; console.log(firstName); } //here let can only be inside that block //if i write print statement outside block and not inside block then it will no...

Jan 29, 2023 · 2 min read · techbyjeevika.io  
Read the article

-   [#web-development](https://hashnode.com/tag/web-development)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#html5](https://hashnode.com/tag/html5)
-   [#css](https://hashnode.com/tag/css)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Jeevika Sirwani](https://hashnode.com/@JeevikaSirwani)

@JeevikaSirwani

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
