code: function log(...messages) {
    console.log(...messages);
    const p = document.createElement('p');
    p.innerText = messages.join(' ');
    logElement.appendChild(p);
  }
docs: Log messages to the #log element and the console
  @param {*[]} messages - list of messages