javascript html dom

関連タイピング
-
プログラミングを学びたい方は是非!2025/05/21公開
プレイ回数1002610打 -
html初心者用のタイピングです。
プレイ回数5878短文英字50打 -
JavaScript 暗記用です
プレイ回数3221英語長文1038打 -
TLJ専用のHTML練習用タイピングです。
プレイ回数4506260打 -
JavaScriptの暗記用です
プレイ回数2641英語長文504打 -
htmlの雛形覚え用
プレイ回数646英語長文258打 -
ブラウザで動くテトリスのコーディングです。
プレイ回数2910長文532打 -
JavaScript 暗記用です
プレイ回数1530英語長文687打
問題文
(const p=document.createElement("p");)
const p=document.createElement("p");
(const text=document.createTextNode("new text");)
const text=document.createTextNode("new text");
(p.appendChild(text);)
p.appendChild(text);
(const parent=document.getElementById("div1");)
const parent=document.getElementById("div1");
(parent.appendChild(p);)
parent.appendChild(p);
(const child=document.getElementById("p1");)
const child=document.getElementById("p1");
(parent.insertBefore(p,child);)
parent.insertBefore(p,child);
(child.remove();)
child.remove();
(parent.replaceChild(p,child);)
parent.replaceChild(p,child);