Variable Initialization


Variable Initialization

TThese data storage containers are known as Variables (values).
Variable initialization refers to the process of storing a value in a variable. It is possible to initialize a variable at the time of creation or later when it is needed.
Only use the var keyword when declaring or initializing variables in a document.

Assignment Operator

"Equal" (=) in JavaScript is a "assignment" operator, not "equal to" like in mathematics. Mathematical operations are different.

Types of data in JavaScript

"John Doe" is a text value that can be stored in a JavaScript variable. Text strings are the programming term for text values. However, for the time being, let's stick with numbers and strings. When using double or single quotes, string values are enclosed. It is customary to leave out quotation marks when writing numbers in text. Numbers that are enclosed in quotation marks will be handled as text.