Inserting a node

Report a typo

Two elements are created in the code below:

let paragraph = document.createElement("p");
let text = document.createTextNode("Here is some text");

Insert the text node into the paragraph.

Enter a short text
___

Create a free account to access the full topic