判断题
有了class类概念后,就不存在prototype属性了。
错误
判断题 class Bar { doStuff() { console.log(‘stuff’); }}var b = new Bar();b.doStuff() // 返回报错信息。
判断题 使用的时候直接对类使用new命令。
判断题 class Point { // ...}Point === Point.prototype.constructor返回true。