---
title: "Discussion on \"Variables\" | Hashnode"
description: "Discussion on \"Variables\". What is a variable?\nYou can use a variable to make several references to the same piece of data. Variables are defined in JavaScript using the var keyword.\nVariable declaration\nvar variableName = value;\nEXAMPLE\nvar name = \"Zoe\";\nvar postLiked = \"fals..."
url: "https://hashnode.com/posts/variables/62e519bf430bd1d04a84118a"
---

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

Discussion

# [Variables](https://samstech.hashnode.dev/variables?utm_source=hashnode&utm_medium=feed)

What is a variable? You can use a variable to make several references to the same piece of data. Variables are defined in JavaScript using the var keyword. Variable declaration var variableName = value; EXAMPLE var name = "Zoe"; var postLiked = "fals...

Jul 30, 2022 · 2 min read · samstech.hashnode.dev  
Updated Aug 13, 2022  
Read the article

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

## Written by

[Sameerah Adeshina](https://hashnode.com/@PerfectPup246)

@PerfectPup246

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

Student

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
