批改状态:合格
老师批语:数据类型可以加些例子
// 命名函数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
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号