code: function err(...messages) {
    console.error(...messages);
    const p = document.createElement('p');
    p.innerText = messages.join(' ');
    p.style = 'color: red';
    logElement.appendChild(p);
  }
docs: Log messages to the #log element and the console as errors
  @param {*} messages - list of messages