dwyl / dwyl/learn-javascript

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

オープン
#24 コメント 3 件 リアクション 3 件 担当者 0 名 GitHub で見る
question
主要言語
HTML
スター
65
フォーク
15
PR マージ指標
30日以内にマージされた PR はありません

説明

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!

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

まず、“Check for Palindromes”タスクのガイダンスまたはレッスン内容と、document.writeの説明を見つけます。document.writeがevalのようなものと見なされる理由、その動作、およびプロジェクトが推奨する代替手段を文書化します。依頼された説明が学習者に提供されていれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
documentation
issue の種類
ドキュメント
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。