All challenges
Multiple ChoiceIntermediate 30s

innerHTML Danger

Choose the best answer for: innerHTML risk
Options
  1. 1innerHTML is always safe because the browser sanitizes input
  2. 2innerHTML with user input can execute arbitrary scripts
  3. 3innerHTML only works with trusted content and rejects others
  4. 4innerHTML escapes HTML automatically so tags render as text

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