Following are some basic definitions of variables in a typical programming language context.
A variable provides us with a named storage that our programs can manipulate. It is the basic unit of storage in a program.
Variables are used to store information to be referenced & manipulated in a computer program.
In programming, a variable is a value that can be changed depending on the conditions or information being passed to the program.
Data Types –
Datatypes are basically type of data that can be used and manipulated in a program. For e.g. numbers(1, 2, 5,5), string(“hello Simple Snippets”, “JS”), boolean(true, false) etc.
Primitive data type (string, number, boolean, null, undefined)
Non-primitive (reference) data type (objects, arrays)
For Program code, info & more resources checkout this article –
Video by – Tanmay Sakpal
Simple Snippets Channel link – https://www.youtube.com/simplesnippets