why do the elements cannot be displayed in the document? what is the wrong? here is code:
let heading=document.createElement("header");
let logo=document.createElement("div");
let menue=document.createElement("ul");
document.heading.appendChild(logo);
document.heading.appendChild(menue);
document.body.prepend(heading);
Bcz you are trying to append elements dynamically and there is no header in your DOM. YOur code will not work. You can tr this one
let heading = document.createElement("header");
let logo = document.createElement("div");
let menue = document.createElement("ul");
heading.appendChild(logo);
heading.appendChild(menue);
document.body.prepend(heading);