javascript html dom

関連タイピング
-
JavaScript暗記用です。
プレイ回数3404英語長文707打 -
自作のハンバーガーメニューを作成しましょう!
プレイ回数3515英語長文721打 -
プログラミングを学びたい方は是非!2025/05/21公開
プレイ回数1000610打 -
プログラミングで良く使う英単語、構文のタイピングです!
プレイ回数3352短文英字429打 -
HTMLタグの入力練習
プレイ回数472英語230打 -
初心者向けです。
プレイ回数7535英語546打 -
JavaScript 暗記用です
プレイ回数3186英語長文1247打 -
プログラミングを学びたい方は是非!2013/07/03公開
プレイ回数36万1071打
問題文
(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);