All challenges
Multiple ChoiceBeginner 30s

classList API

Choose the best answer for: class manipulation
Options
  1. 1classList replaces the whole className with a single new class
  2. 2classList only reads class names and cannot add or toggle them
  3. 3classList is a plain string that must be concatenated to change
  4. 4classList.add/remove/toggle manipulate classes without overwriting

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle