Create a function with 2 arguments that returns an array of the first (n) multiples of (x).

PHOTO EMBED

Sat Aug 13 2022 15:53:33 GMT+0000 (Coordinated Universal Time)

Saved by @fastoch #javascript

function countBy(x, n) {
  let z = [];
  for(i = 1; i <= n; i++) {
    z.push(x * i);
  }
  return z;
}
content_copyCOPY

https://www.codewars.com/kata/5513795bd3fafb56c200049e/train/javascript