---
title: "Discussion on \"Understanding the Concept of Scope and How It Affects Variables Declaration in JavaScript\" | Hashnode"
description: "Discussion on \"Understanding the Concept of Scope and How It Affects Variables Declaration in JavaScript\". In this article we will talk about the concept of scope in javascript and how it affects the behaviours of the three keywords; let, const and var. In order to make this article simple and concise, I will not touch hoisting. I will write a different a..."
url: "https://hashnode.com/posts/understanding-the-concept-of-scope-and-how-it-affects-variables-declaration-in-javascript/62bceb54de0d0a065f4f6b7c"
---

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

Discussion

# [Understanding the Concept of Scope and How It Affects Variables Declaration in JavaScript](https://code-kage.hashnode.dev/understanding-the-concept-of-scope-and-how-it-affects-variables-declaration-in-javascript?utm_source=hashnode&utm_medium=feed)

In this article we will talk about the concept of scope in javascript and how it affects the behaviours of the three keywords; let, const and var. In order to make this article simple and concise, I will not touch hoisting. I will write a different a...

Jun 30, 2022 · 7 min read · code-kage.hashnode.dev  
Read the article

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

## Written by

[Abdulkareem Babatunde](https://hashnode.com/@CodeHokage)

@CodeHokage

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

A software developer and a part time data scientist

I am a frontend developer

## Responses 1

Markdown supported · ⌘↵ to post

[Godsent Michael](https://hashnode.com/@Godsent)

[Jul 1, 2022](https://hashnode.com/posts/understanding-the-concept-of-scope-and-how-it-affects-variables-declaration-in-javascript/62bceb54de0d0a065f4f6b7c/comment/62bf2fc2e4246414d3d3166e)

Great piece and I like the approach of showing and explaining what the expected results should be....

[Abdulkareem Babatunde](https://hashnode.com/@CodeHokage)

[Jul 1, 2022](https://hashnode.com/posts/understanding-the-concept-of-scope-and-how-it-affects-variables-declaration-in-javascript/62bceb54de0d0a065f4f6b7c/comment/62bf2fc2e4246414d3d3166e#reply-62bf46ede4246414d3d31990)

Thank you.
