Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

'document.write can be a form of eval/evil'

Open
#24 3 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript
Domain
documentation

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.

Description

question

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!

Dominant language
HTML
Stars
65
Forks
15
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dwyl/learn-javascript

All issues in dwyl/learn-javascript

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.