fork download
  1. const multipLyList = (arr, n) => arr.map(e => n * e);
  2.  
  3. console.log(multipLyList([1, 2, 3, 4, 5], 3))
Success #stdin #stdout 0.08s 32044KB
stdin
Standard input is empty
stdout
[ 3, 6, 9, 12, 15 ]