How to Print the output in single line in a for loop statement?
Created 4 years ago
515
Views
3
Comments
Basic example of printing 1-10 is fine .
for (i=1;i<=10;i++)
{
console.log(i);
}
I need the output as 1 2 3 4 5 6 7 8 9 10
Not in Multiline as
1
2
3
4
etc...
Can someone help me out ?