Skip to main content

Command Palette

Search for a command to run...

Values and Variable in JavaScript?

Episode - 1

Published
1 min read
Values and Variable in JavaScript?
A

Software Developer who shares content on software engineering, careers, and technical writing.

What is value?

  • A value is a fixed object.
  • Or, a value is a definite item or entity.
  • In the context of programming, A values can be a number, string, double, function, etc

Note: javascript function also produces a value!

What is the use of value?

  • Values are used to perform calculations.
  • Suppose, 10 & 20 are values, you can add, and subtract, them using an operator!

How to invoke or call value?

  • You can invoke or call your values with their name, which is a variable.

What is a variable?

  • Variable is "bucket" for storing "water"

Buckets => Memory

Water => Data or value

  • Or, variables are container/memory for storing data values.

  • Or, A value stored in a variable.

  • Or, A variable can be stored in any data, for example, number, string, etc.

  • Or, a variable contains a value.

  • Or, a variable is the name of the memory location.

😍That's all for now, thanks for reading this article to the end.

🔔 Don't forget to follow me on:

Twitter

LinkedIn

Under the hood of the JavaScript series by ATechAjay(Ajay Yadav)

Part 2 of 2

This is the best series on JavaScript, where you can find the closed look of JavaScript just like my Twitter Threads. So take advantage of this awesome JavaScript series.

Start from the beginning

Explanation to the for ... of loop in JavaScript

The JavaScript "for ... of" loop explanation!