Changing HTML

Report a typo

A header is created in the code below:

let heading = document.createElement("header");

Your task is to insert a paragraph element with the text The answer is 42 into the heading. Change the HTML content using a single line of code.

Enter a short text
___

Create a free account to access the full topic