I am having a range variable which takes a single integer and then I want to print the table of 9 till that range. So I am able to print the table of 9 successfully but I want it to be printed on a single line with space between them. May I please get an explanation on this as I am a beginner in Javascript.
This is my code 👇
let range = 3;
for (i=1; i<=range; i++) {
final_res = 9 * i;
console.log(final_res)
}
console.logprints a new line.