1.声明式
function fn() { //do something }
2.函数表达式
let fn = function () { //do something }
3.构造函数
function Person(name,age){ this.name=name this.age=age } let fn = new Person('syq','18')