All challenges
Multiple ChoiceIntermediate 30s

innerHTML vs textContent

Choose the best answer for: content manipulation
Options
  1. 1innerHTML parses HTML; textContent sets plain text
  2. 2textContent parses HTML while innerHTML sets only plain text
  3. 3innerHTML and textContent behave identically for any string
  4. 4innerHTML is always safer because it escapes the markup

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