All challenges
Multiple ChoiceIntermediate 30s

innerHTML risk

Choose the best answer for: innerhtml risk
Options
  1. 1Escapes markup so scripts cannot run
  2. 2Replaces the target text as content
  3. 3Can execute scripts (XSS) if unsanitized
  4. 4Assigns always-safe HTML by default

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