Skip to main content

Practice · 1 of 3

Update Text and Class

CHALLENGE
Difficulty: beginner+25 XP

The page gives you heading (an h1 element) and intro (a p element). In JS: - Set heading's text to Pipeline running. - Add the class is-active to intro. Rules: - Use textContent and classList.add.

Back to lesson: Practice: DOM Practice Gym