Multiple ChoiceIntermediate 30s
innerHTML vs textContent
Choose the best answer for: content manipulation
Options
- 1innerHTML parses HTML; textContent sets plain text
- 2textContent parses HTML while innerHTML sets only plain text
- 3innerHTML and textContent behave identically for any string
- 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.