Quiz Yourself on Stimulus

Let's take a quiz on what we have learned so far.

1

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

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

What’s the best way to do 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 1000+ tech skills courses.