Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. Which is the method invoked to connect the last vertex back to the first?

  2. A.

     closePath()

    B.

     close()

    C.

     connectlast(first)

    D.

     none of the mentioned

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    The closePath() method connects the last vertex back to the first, thereby creating a path.


Be The First To Comment