Andrey Parfenov 6 months ago
parent
commit
93c7be88c9
  1. 3
      script.js

3
script.js

@ -9,9 +9,12 @@ function createApp() { @@ -9,9 +9,12 @@ function createApp() {
function copyStatic() {
const staticEl = document.querySelector('#static');
const staticCopy = staticEl.cloneNode(true);
const div = document.createElement('div');
div.innerText = 'hello, world!!!';
staticCopy.append(div);
console.log('staticEl', staticEl);
console.log('staticCopy', staticCopy);
}
createApp();
copyStatic();
Loading…
Cancel
Save