educative.io

Educative

Modify Page Struucture | Coding Challenge #1: Adding a Paragraph

Why is this answer considered wrong when it generates the same output?

const paraelement=document.createElement(‘p’);

document.getElementById(‘content’).insertAdjacentHTML(“beforeEnd”, "

Here is a more complete list of languages

");

Hi @Jai

Your solution does not add the <a> tag to the URL, hence the list text is not clickable. This is why the test fails.

Best Regards,
Zuwayr | Developer Advocate
educative.io