js看输出,前端实习面试题
const shape = {
radius: 10,
pada() {
return this.radius * 2;
},
xiada: () => { return this.radius * Math.PI * 2 }
}
console.log(shape.pada()); //20
console.log(shape.xiada()); //NAN 求大佬解答,为啥第二个输出是NAN啊,我作用域这块儿经常整不明白😫#前端实习##面试题##面试##面试题目#
查看15道真题和解析
