I\'m trying to get the output from my for loop to print in a single line in the console.
for(var i = 1; i < 11; i += 1) { console.log(i); }
let n=0; for ( i = 1; i <= 10; i++) { n += i + “ “; console.log(n); }