code: function leftPad(n, prefix, maxN) {
    const s = n.toString();
    const nchars = Math.max(2, String(maxN).length) + 1;
    const nspaces = nchars - s.length - 1;
  
    return prefix + ' '.repeat(nspaces) + s;
  }
docs: Adds spaces and prefix to number maxN is a maximum number we should have space for