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.
Press Submit to check your solution.
Back to lesson: Practice: DOM Practice Gym