I want to avoid line breaks when I am using loops how to do that when I try to print let's suppose 1 to 10 is printed line by line but I want to see it in one line how to do this in JavaScript.