const multipLyList = (arr, n) => arr.map(e => n * e); console.log(multipLyList([1, 2, 3, 4, 5], 3))
Standard input is empty
[ 3, 6, 9, 12, 15 ]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!