判断题
class Bar { doStuff() { console.log(‘stuff’); }}var b = new Bar();b.doStuff() // 返回报错信息。
错误
判断题 使用的时候直接对类使用new命令。
判断题 class Point { // ...}Point === Point.prototype.constructor返回true。
判断题 class Point{//...}typeofPoint//返回值是“function”。