フリー問題

Salesforce Certified JavaScript Developer のフリー問題 13 / 20 問目

問題文

A click happens on a button that sits inside a nested set of elements, and every ancestor has a click listener registered with the default options. In which order do the listeners run?

選択肢

  1. The order depends on the order in which the listeners were registered, regardless of the position in the tree.
  2. Only the listener on the target runs, and the ancestors stay out of the delivery sequence.
  3. The target first, then each ancestor outwards, because listeners registered with the default options run during the bubbling phase.
  4. The outermost ancestor first and the target last, and the default registration takes part in that downward walk from the document.

解答・解説を確認するには

正解と解説の確認、回答の記録には無料登録が必要です。登録すると演習モードでフリー問題に回答し、正誤と解説をその場で確認できます。