Sample Input:
3
Sample Output:
9 18 27
What i did :
var N = +userInput[0];
var b = [];
if (N === 0) {
console.log('NULL');
} else {
for (i = 1; i <= N; i++ ) {
b.push(i);
}
var c = b.map(b => b * 9);
console.log(c);
I get [9, 18, 27]
as my output and I can't figure out how to change it to 9 18 27