JavScript level 10 lesson 1 Answer not accepting!
Question:
We have added some HTML code in the editor. You have to use the document.write() function to add a heading <h1> to the page. The text of the heading should be: Hello World.
Sol.:
<!doctype html>
<html>
<head>
<title>JS with HTML</title>
</head>
<body>
<script>
document.write(`<h1>Hello World<h1>`);
</script>
</body>
</html>