【JS】Beginner2:Variables & Data

1.Variables

name :name it in a way that tells what you've stored there

value:

2.Create a variable => assign/set its value

declaration & initialization

 

3.Declaration

Declaring a variable to exist

Picking an empty shelf in a massive warehouse and putting a name on it.

var variableName;

 

4.Initialization

Giving a variable its value for the first time

Value can change later ,but it's initialized once.

var name=value

string' " ,number

 

5.Assignment

Set a variable’s value many times

 

你可能感兴趣的:(variable)