Add a node correctly

Report a typo

You have the following text paragraphs:

<p id="code">Code an application</p>
<p id="test">Run the tests</p>

And a new paragraph is created in the code below:

let code = document.querySelector("#code");
let test = document.querySelector("#test");
let build = document.createElement("p");
build.textContent = "Make a build";

Add the new element between the two paragraphs. Use the existing variables.

Enter a short text
___

Create a free account to access the full topic