'document.write can be a form of eval/evil'
- Dominant language
- HTML
- Stars
- 65
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Description
I have just completed the 'Check for Palindromes' task on FreeCodeCamp (yay me!) and although my code was accepted, I wondered why there are those irritating little exclamation marks telling me that 'document.write can be a form of eval'. If possible, could you provide me with a brief explanation of why this is the case, how it works and what I should be using instead?
Thanks!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the guidance or lesson content for the “Check for Palindromes” task and the explanation of document.write. Document why document.write is considered eval-like, how it behaves, and what alternative the project recommends; done means the requested explanation is available to learners.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100