Correcting teacher:PHPz
Correction status:qualified
Teacher's comments:数据类型可以加些例子
// 命名函数
function test(num = '') {}
// 匿名函数
let test1 = function (num = '') {};
//匿名函数(立即调用函数):声明与调用二合一
console.log(
(function (username) {
return "Hello" + username;
})("zhang")
);
// 箭头函数:简化匿名函数
let ceshi = (a, b) => {
return a + b;
};
console.log(ceshi(3, 2));
number,string,boolean,undefined,null
arrat,object,function