1, Javacsript implementation of hyperlinks: <a href= "JavaScript (' Hello ') > Dot </a>
2, the function call in JavaScript can be before the function declaration.
3. JavaScript does not require all paths to have return values, as in C #, and returns undefined when there is no return value
anonymous function:
Copy Code code as follows:
var f1=function (i1,i2) {return i1+i2};
Alert (F1 (10,12));
Alert (function (i1,i2) {return i1+i2} (10,12));
4, Javascript does not have the concept of namespaces, two JS files appear with the same name function is the last reference or the final declaration of the function as prevail.
When referencing external JS file: Cannot <script src= "..." type= "Text/javascript"/>, must be written: <script src= "..." type= "Text/javascript" ></ Script>
5, JavaScript is not a class of syntax, is used to simulate the closure of functions.
6. The array in JS is not only a normal array, but also can be used as dictionary and stack.
Copy Code code as follows:
var array=new array ();
array["Person"]= "Ren";
array["Kou"]= "Kou";
array["Hand"]= "Shou"