We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd743ed commit 99ccdb1Copy full SHA for 99ccdb1
13_insertBefore.js
@@ -15,3 +15,10 @@ shp.classList.add('red');
15
// insertBefore
16
// rhp is element, and shp is location after rhp
17
container.insertBefore(rhp, shp);
18
+
19
+// replace child
20
+const heading6 = document.createElement('h3');
21
+const textmarine = document.createTextNode('The marine ford');
22
+heading6.appendChild(textmarine);
23
+// replace child new, old
24
+container.replaceChild(heading6, rhp);
0 commit comments