javascript html dom

関連タイピング
-
自作のハンバーガーメニューを作成しましょう!
プレイ回数3091英語長文721打 -
プログラミングを学びたい方は是非!2013/07/03公開
プレイ回数35万1071打 -
html初心者用のタイピングです。
プレイ回数5605短文英字50打 -
メソッド名やクラス名をタイピングしよう
プレイ回数144長文英字60秒 -
初心者向けです。
プレイ回数6869英語546打 -
JavaScript 暗記用です
プレイ回数2694英語長文594打 -
基礎的なHTML
プレイ回数3111英語54打 -
プログラミングでよく使う記号や構文を練習したい人向け
プレイ回数1万長文956打
問題文
(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);