Vidyalelo
JavaScript · Q66

Classes And Modules

Programming · JavaScript · question 66

Q66

Which of the following is the descendant operator?

A.
..
B.
Answer
C.
*
D.
@

Answer: Option B

Solution

Answer: Option B
Solution:
The .. operator is the descendant operator; you can use it in place of the normal . member-access operator :
var names = pt..name;