相关考题
-
单项选择题
一个类必须有构造方法,如果没有显式定义,一个空的()方法会被默认添加
A._constuctor
B.toString
C.constructor
D._clone -
单项选择题
()方法是类的默认方法,通过new命令生成对象实例时,自动调用该方法。
A._constuctor
B.toString
C.constructor
D._clone -
单项选择题
class Point { constructor(x, y) { // ... } toString() { // ... }}Object.keys(Point.prototype)下列选项中正确的是()
A.返回:["constructor","toString"]
B.返回:["toString"]
C.返回:[]
D.返回:""
