---
title: "Discussion on \"Understanding Variables and Data Types in JavaScript\" | Hashnode"
description: "Discussion on \"Understanding Variables and Data Types in JavaScript\". What variables are and why they are needed\nThink of a variable as a box to which a name has been assigned.\nWhen you create a variable, you are taking an empty box and writing a label on it, and puttin"
url: "https://hashnode.com/posts/understanding-variables-and-data-types-in-javascript/69b6f8e0f4eb2f8b04c8c8de"
---

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

Discussion

# [Understanding Variables and Data Types in JavaScript](https://tech-blogs-shivanshu.hashnode.dev/understanding-variables-and-data-types-in-javascript?utm_source=hashnode&utm_medium=feed)

What variables are and why they are needed Think of a variable as a box to which a name has been assigned. When you create a variable, you are taking an empty box and writing a label on it, and puttin

Mar 15 · 5 min read · tech-blogs-shivanshu.hashnode.dev  
Updated May 4  
Read the article

-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#cohort2026](https://hashnode.com/tag/cohort2026)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#data-types-in-javascript](https://hashnode.com/tag/data-types-in-javascript)
-   [#variables](https://hashnode.com/tag/variables)

## Written by

[Shivanshu Agrawal](https://hashnode.com/@shivanshuagrawal)

@shivanshuagrawal

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

chai aur blogs

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
