单项选择题
以下哪个方法可以检测是该对象的私有属性,不是原型属性?()
A.isPrototypeOf
B.hasOwnProperty
C.getOwnPropertySymbols
D.getOwnPropertyDescriptors
点击查看答案
相关考题
-
单项选择题
ES6引入了一种新的原始数据类型(),表示独一无二的值,它是JavaScript语言的第七种数据类型.
A.number
B.Symbol
C.string
D.boolean -
单项选择题
封装链表类,以下哪个方法用来显示链表中的元素?()
A.function insert(newElement, item) { var newNode = new Node(newElement); var current = this.find(item); newNode.next = current.next; current.next = newNode; }
B.function display() { var currNode = this.head; while (!(currNode.next == null)) { print(currNode.next.element); currNode = currNode.next; } }
C.function find(item) { var currNode = this.head; while (currNode.element != item) { currNode = currNode.next; }return currNode; }
D.以上都不对 -
单项选择题
在封装链表类中有一个node节点类,节点类必须包含一个什么属性指向下一个元素?()
A.next
B.prev
C.element
D.list
