---
title: "Discussion on \"Use of Var, Let and Const Statements in JavaScript.\" | Hashnode"
description: "Discussion on \"Use of Var, Let and Const Statements in JavaScript.\". Explains the differences between the let, var and const statements and when and how to effectively use them."
url: "https://hashnode.com/posts/use-of-var-let-and-const-statements-in-javascript/64f88487eec4b3192188e9f6"
---

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

Discussion

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

Explains the differences between the let, var and const statements and when and how to effectively use them.

Sep 6, 2023 · 6 min read · techwithtega.hashnode.dev  
Updated Sep 8, 2023  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#var-let-const](https://hashnode.com/tag/var-let-const)
-   [#variable-declaration](https://hashnode.com/tag/variable-declaration)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#frontend](https://hashnode.com/tag/frontend)

## Written by

[Zion Ukpong](https://hashnode.com/@yourfavtechie)

@yourfavtechie · Abuja, Nigeria

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

Avid Learner, Data & ML Engineer and Technical Writer.

Hi there😊, I'm Zion 👋 I like to write, and I like to build stuff. Most of the articles on my blog are themed around JavaScript; however, I will write articles talking about data science, machine learning/artificial intelligence, or expound on a project I'm working on. Take a tour of my blog, see what intrigues you, and I hope you stick around for more!

## Responses 10

Markdown supported · ⌘↵ to post

[Howard](https://hashnode.com/@howardphung)

[Sep 12, 2023](https://hashnode.com/posts/use-of-var-let-and-const-statements-in-javascript/64f88487eec4b3192188e9f6/comment/650070d5703e32bdbc1d2a00)

Well done post, I have post about the same topic btw 🤣

[Zion Ukpong](https://hashnode.com/@yourfavtechie)

[Sep 12, 2023](https://hashnode.com/posts/use-of-var-let-and-const-statements-in-javascript/64f88487eec4b3192188e9f6/comment/650070d5703e32bdbc1d2a00#reply-6500a40b703e32bdbc1d2f62)

There’s enough room for both articles 🙃

[Mustafa Umar Omotayo](https://hashnode.com/@Omotayoo)

[Sep 9, 2023](https://hashnode.com/posts/use-of-var-let-and-const-statements-in-javascript/64f88487eec4b3192188e9f6/comment/64fc304d8b05f2b3821c1f7b)

Well-done 🥳 Don't stop writing

[Kabir Mohammed](https://hashnode.com/@Kabizak)

[Sep 7, 2023](https://hashnode.com/posts/use-of-var-let-and-const-statements-in-javascript/64f88487eec4b3192188e9f6/comment/64f97bbcc035cd988c3240e2)

Interesting article 🔥...keep it up

[Pravesh Sudha](https://hashnode.com/@praveshstwt1)

[Sep 7, 2023](https://hashnode.com/posts/use-of-var-let-and-const-statements-in-javascript/64f88487eec4b3192188e9f6/comment/64f94ac1c035cd988c323a55)

This is really informative and engaging. I am a beginner to JavaScript and these blogs helps a lot. Keep the good work going

[Zion Ukpong](https://hashnode.com/@yourfavtechie)

[Sep 7, 2023](https://hashnode.com/posts/use-of-var-let-and-const-statements-in-javascript/64f88487eec4b3192188e9f6/comment/64f94ac1c035cd988c323a55#reply-64f99de8c035cd988c324960)

Glad to help!

[Chiedozie Ekeh](https://hashnode.com/@Manchesterunited1)

[Sep 6, 2023](https://hashnode.com/posts/use-of-var-let-and-const-statements-in-javascript/64f88487eec4b3192188e9f6/comment/64f89fae139d4c9cb6115e94)

Very interesting and easy to understand

[Zion Ukpong](https://hashnode.com/@yourfavtechie)

[Sep 6, 2023](https://hashnode.com/posts/use-of-var-let-and-const-statements-in-javascript/64f88487eec4b3192188e9f6/comment/64f89fae139d4c9cb6115e94#reply-64f8ad03139d4c9cb611601b)

Thank you!❤

[Benjamin Sunday](https://hashnode.com/@Ben21)

[Sep 6, 2023](https://hashnode.com/posts/use-of-var-let-and-const-statements-in-javascript/64f88487eec4b3192188e9f6/comment/64f897bbc035cd988c322d5c)

💯👍

[Victor Udoh](https://hashnode.com/@veegramm)

[Sep 6, 2023](https://hashnode.com/posts/use-of-var-let-and-const-statements-in-javascript/64f88487eec4b3192188e9f6/comment/64f89328139d4c9cb6115cf6)

Go girl!

[Zion Ukpong](https://hashnode.com/@yourfavtechie)

[Sep 6, 2023](https://hashnode.com/posts/use-of-var-let-and-const-statements-in-javascript/64f88487eec4b3192188e9f6/comment/64f89328139d4c9cb6115cf6#reply-64f89415c035cd988c322cbf)

Yessirrr💃

[Favour Johnson](https://hashnode.com/@johnson124)

[Sep 6, 2023](https://hashnode.com/posts/use-of-var-let-and-const-statements-in-javascript/64f88487eec4b3192188e9f6/comment/64f892d8c035cd988c322c9c)

I like this

[Zion Ukpong](https://hashnode.com/@yourfavtechie)

[Sep 6, 2023](https://hashnode.com/posts/use-of-var-let-and-const-statements-in-javascript/64f88487eec4b3192188e9f6/comment/64f892d8c035cd988c322c9c#reply-64f893f4139d4c9cb6115d2a)

Thank you!

[Jeremiah Elisha](https://hashnode.com/@Jelisha)

[Sep 6, 2023](https://hashnode.com/posts/use-of-var-let-and-const-statements-in-javascript/64f88487eec4b3192188e9f6/comment/64f89217139d4c9cb6115ccc)

I'll have to say this was very interesting to read. Thank you 💯😊

[Zion Ukpong](https://hashnode.com/@yourfavtechie)

[Sep 6, 2023](https://hashnode.com/posts/use-of-var-let-and-const-statements-in-javascript/64f88487eec4b3192188e9f6/comment/64f89217139d4c9cb6115ccc#reply-64f89312139d4c9cb6115ced)

Thanks for reading!😊

[Testimony Edidiong](https://hashnode.com/@edidiong604)

[Sep 6, 2023](https://hashnode.com/posts/use-of-var-let-and-const-statements-in-javascript/64f88487eec4b3192188e9f6/comment/64f88e40139d4c9cb6115c6d)

This was really helpful thanks for enlightening us 💕
