Vidyalelo
JavaScript · Q3

Classes And Modules

Programming · JavaScript · question 3

Q3

Consider the following code snippet : var o = new F(); o.constructor === F The output would be :

A.
false
B.
true
Answer
C.
0
D.
1

Answer: Option B

Solution

Answer: Option B
Solution:
The result is true: the constructor property specifies the class.