1.定义函数的方式
-字面量创建(函数声明式) function 函数名(){ }
-函数表达式 var 变量名=function (){ }
-构造函数 var 变量名=new Function()
2.argument作用
-实参传参的参数多于行参接受的参数,此时用argument接收,形成一个伪数组,
-伪数组转数组方法
Array.form()
Array.argument.prototype.slice.call()
[…argument]
3.判断数据类型方法
-typeof
-instanceof
Array.prototype.tostring.call
4.数组方法
-concat -join -indexof -lastindexof -includes -push -pop
-unshift -shift -find -findindex -filter -slice
5.字符串方法
-trim -touppercase -tolowecase -charAt -charCodeAt -indexof -lastindexof
-includes -concat -slice -substring -substr