题目
题目
单项选择题

What does the instanceof keyword do?

选项
A.It converts an object to a primitive data type.
B.It checks if an object belongs to a specific class
C.It is used to create a new instance of a class.
D.It is used to declare a new instance variable.
查看解析

查看解析

标准答案
Please login to view
思路分析
Here we explore what the instanceof keyword does in JavaScript (and similar languages), by evaluating each option step by step. Option 1: 'It converts an object to a primitive data type.' This is incorrect. The keyword is not used for type conversion or coercio......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!