javascript html dom

関連タイピング
-
html初心者用のタイピングです。
プレイ回数5832短文英字50打 -
JavaScript 暗記用です
プレイ回数1526英語長文687打 -
フロントエンドエンジニア向けのタイピング
プレイ回数50188打 -
自作のハンバーガーメニューを作成しましょう!
プレイ回数3485英語長文721打 -
基礎的なHTML
プレイ回数3528英語54打 -
プログラミングを学びたい方は是非!2025/05/21公開
プレイ回数926610打 -
プログラミングを学びたい方は是非!2013/07/03公開
プレイ回数36万1071打 -
chatGPTに作らせた部分一致検索サイトです。
プレイ回数1039長文590打
問題文
(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);