My issue
My code
// Create a new <p> element
var newParagraph = document.createElement('p');
// Assign the id 'paragraph2' to the new <p> element
newParagraph.id = 'paragraph2';
// Assign the content 'Best place to learn, practice and assess myself' to the new <p> element
newParagraph.textContent = 'Best place to learn, practice and assess myself';
// Find the element with id 'paragraph1'
var paragraph1 = document.getElementById('paragraph1');
// Append the new <p> element as a child to the element 'paragraph1'
paragraph1.appendChild(newParagraph);
Learning course: Web development using JavaScript
Problem Link: CodeChef: Practical coding for everyone