Preview:
function countBy(x, n) {
  let z = [];
  for(i = 1; i <= n; i++) {
    z.push(x * i);
  }
  return z;
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter