Quiz Yourself on Stimulus

Test yourself on Stimulus in this lesson.

1

Suppose you wish to add a Stimulus controller called fancy-color to the following DOM element:

<section class="flower" id="red">

How would you go about this?

A)

Find a relevant DOM element to add this to.

B)

<section class="flower" id="red" data-controller="flower">

C)

<section class="flower" id="red" data-controller="fancy-color">

Question 1 of 80 attempted

Get hands-on with 1200+ tech skills courses.