JS基础回顾_函数
函数
不要使用C风格的大括号
// log
function return1() {
return {
name: 'oceans',
}
}
function return2() {
return
{
name: 'oceans'
}
}
console.log(return1())
console.log(return2())
delete
// log
x = function(x){
delete x
return x
}(1)
console.log(x)