Single Choice Easy

QWhich method is used to connect the last vertex to the first?

ID: #5259 Javascript Graphics and Rendering MCQ 154 views
Question Info
#5259Q ID
EasyDifficulty
Javascript Graphics and Rendering MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A closePath() ✔ ✖
  • B close() ✔ ✖
  • C connectlast(first) ✔ ✖
  • D connect() ✔ ✖
Correct Answer

Explanation

The closePath() method joins the last vertex to the first, forming a path. It connects the last and first points, resulting in a closed figure.

Share This Question

Challenge a friend or share with your study group.