フリー問題

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

問題文

A team reviews the options accepted when a listener is registered. Which two statements are correct? (Select two.)

選択肢

  1. The signal option is required for every listener, because a listener without it cannot be removed once the element has been inserted into the document.
  2. The capture option changes which element the handler receives as the event target, so a capturing listener sees the container instead of the element that was pressed.
  3. The passive option declares that the listener will not cancel the default action, which lets the browser continue scrolling without waiting.
  4. The once option removes the listener automatically after it has run one time.
  5. Registering the same function twice for the same type and the same capture setting adds two listeners, so the handler runs twice.

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

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