render method

void render ()

The method will change the DOM-Tree according to the content

Implementation

void render() {
  querySelector("body").setInnerHtml("<div id='menu'></div>");
  querySelector("#menu").insertAdjacentElement("afterbegin", this.content);
}