Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. Which of the following is the descendant operator?

  2. A.

     ..

    B.

     …

    C.

     *

    D.

     @

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    The .. operator is the descendant operator; you can use it in place of the normal . member-access operator :

    var names = pt..name;


Be The First To Comment