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 concept of namespace in Javascript. Functions with the same name in two js files are quoted as last or last The declared function shall prevail.
When referencing external js files: it cannot be , it must be written as:
5. There is no class syntax in Javascript, which is simulated with function closures.
6. Arrays in JS are not just ordinary Arrays can also be used as Dictionary and Stack. 🎜>var array=new Array();
array["人"]="ren";
array["口"]="kou";