1. Implement a hyperlink in javacsript: <a href = "javascript ('hello')> point </a>
2. function calls in javascript can be performed before function declaration.
3. JavaScript does not require that all paths have return values as in C #. If no return value exists, undefined is returned.
Anonymous functions:CopyCodeCode: var F1 = function (I1, I2) {return I1 + I2 };
Alert (F1 (10, 12 ));
Alert (function (I1, I2) {return I1 + I2} (10, 12 ));
4. There is no namespace concept in Javascript. The functions with the same name in the two JS files are referenced at last or declared at last.
When referencing an external JS file: cannot <SCRIPT src = "... "Type =" text/JavaScript "/>, which must be written as <SCRIPT src = "... "Type =" text/JavaScript "> </SCRIPT>
5. There is no class syntax in Javascript, Which is simulated by function closures.
6. arrays in JS are not only common arrays, but can also be used as dictionary and stack.
Copy codeThe Code is as follows: var array = new array ();
Array ["persons"] = "Ren ";
Array ["Port"] = "Kou ";
Array ["hand"] = "Shou"