Print the digits of the integer in a single line separated by space in javascript

Helllo,

I have easy question, but can't find the solution. Need to print all numbers from 1 to N [10] but not in a row. The output needs to bee in single line separated by spaces - 1 2 3 4 5...

let n = 10;
for [let i = 1; i 

Chủ Đề