Practice ยท 1 of 3
Update Text and Class
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.
Difficulty: beginner
Press Submit to check your solution.
Back to lesson: Practice: DOM Practice Gym