Function/Object
All variables and method names: With letters, $ _ other casually, try to use the English alphabet name, see the name of the meaning
Note: You are not allowed to define the names of variables and methods using keywords.
The = = function is the method, the method is the function
= = = Baidu: JavaScript keyword
Format: function name (definition rule for variables) (parameter list) {
function body
Return ""; Do not have to return, you have to use return when necessary, you intend to put the function of the data you feel to return,
};
Note two: Consider function as a data type, "do not act as a method."
Look at it as you define a variable.
Summarize:
1: If the function does not return a value, the return is undefined
2: A function is a data type,
3: Execute function is: function name ();
4: Parameter list, divided into formal parameters and actual arguments
function in JavaScript