filmov
tv
JavaScript Tutorial For Beginners - 09 | JavaScript Variables | JavaScript DataTypes

Показать описание
javascript, JAVASCRIPT VARIABLES, JavaScriptDatatypes,
Today in this tutorial we discuss on the topic is:
JavaScript Variables & Data Types:
JavaScript variables are containers for storing data values.
The Assignment Operator
In JavaScript, the equal sign (=) is an "assignment" operator, not an "equal to" operator.
JavaScript Data Types
JavaScript variables can hold numbers like 100 and text values like "Shs Tech".
In programming, text values are called text strings.
JavaScript can handle many types of data, but for now, just think of numbers and strings.
Strings are written inside double or single quotes. Numbers are written without quotes.
If you put a number in quotes, it will be treated as a text string.
One Statement, Many Variables:
Var a = 5, b = 12, c = ”text” ;
Value = undefined
variables are often declared without a value. The value can be something that has to be calculated, or something that will be provided later, like user input.
A variable declared without a value will have the value undefined.
Today in this tutorial we discuss on the topic is:
JavaScript Variables & Data Types:
JavaScript variables are containers for storing data values.
The Assignment Operator
In JavaScript, the equal sign (=) is an "assignment" operator, not an "equal to" operator.
JavaScript Data Types
JavaScript variables can hold numbers like 100 and text values like "Shs Tech".
In programming, text values are called text strings.
JavaScript can handle many types of data, but for now, just think of numbers and strings.
Strings are written inside double or single quotes. Numbers are written without quotes.
If you put a number in quotes, it will be treated as a text string.
One Statement, Many Variables:
Var a = 5, b = 12, c = ”text” ;
Value = undefined
variables are often declared without a value. The value can be something that has to be calculated, or something that will be provided later, like user input.
A variable declared without a value will have the value undefined.