Correcting teacher:PHPz
Correction status:unqualified
Teacher's comments:箭头函数, arrow function,和剪头函数没关系
function genName(username){
return 'hello,' + username;
}
console.log(genName('我是测试'));
let getUserName = function (username){
return 'hello' + username;
};
console.log(getUserName('测试一下7月20号'));
console.log(getUserName('测试一下7月21号'));
console.log(getUserName('测试一下7月22号'));
getUserName = username => {
return 'hello' + username;
};
console.log(getUserName('测试今天'));