mirror of
https://github.com/jaandrle/deka-dom-el
synced 2024-11-24 17:39:36 +01:00
12 lines
377 B
JavaScript
12 lines
377 B
JavaScript
document.body.append(
|
|
document.createElement("div"),
|
|
document.createElement("span"),
|
|
document.createElement("main")
|
|
);
|
|
console.log(document.body.innerHTML.includes("<div></div><span></span><main></main>"));
|
|
const template= document.createElement("main").append(
|
|
document.createElement("div"),
|
|
document.createElement("span"),
|
|
);
|
|
console.log(typeof template==="undefined");
|