The best way to explain this is with examples.
Let's say I have the integer 5. I plug it into a function, and it would return the space character (" ") 5 times in a single variable, like " ".
I have the integer 3. I plug it into a function, and the output would be " " (3 spaces).
Hopefully you get the point. What is the best way to accomplish this. I feel like there is a really simple way to do this in JavaScript, with or without loops, that I am missing. Thanks.