Learn also variable in javascript

JAVASCRIPT

Posted on 2016-12-01 03:49:32


1, Declare variables:

Each variable is a unique location in the computer's memory to store value.
Each variable has a unique name and its value can change during the script execution.
Use the keyword 'var' to declare variables.
example
These variables have a scope to be determined, when they declared in the script.
Global variable.
Local variable.
Raw format (literal) is the constant value used in the script.
See also: How to learn Javascript
2, Code named variables:

Using characters letters, numbers and hyphens (underscore) for naming.
Must begin with the letter or hyphen characters.
Not contain special characters such as +, -, *, /,%, ... etc.
Does not contain whitespace.
Did not match the keywords.
Example:
You should read more at tutorial javascript
I wish help guys!