Feedback for JS20C problem

Learning course: Web development using JavaScript
Problem Link: CodeChef: Practical coding for everyone

Feedback

ths is a code var newpara=document.createElement(‘p’);

newpara.id=“paragraph2”;

newpara.innerHTML=‘Best place to learn, practice and assess myself’;

document.getElementById(‘paragraph1’).appendChild(newpara);

and if I do it by changing inverted double commas to it like
var newpara=document.createElement(“p”);

newpara.id=“paragraph2”;

newpara.innerHTML=‘Best place to learn, practice and assess myself’;

document.getElementById(“paragraph1”).appendChild(newpara);

what the rubbish is this , it is giving same answer or do you want to confuse the student

1 Like

@div2911 - For HTML / CSS / JS - unlike regular algorithmic problems - you are right, multiple answers are possible.

We will update the test data in the near future to allow for multiple scenarios.