plz help me for how to get output in single line with space in the below code const num = 9; var n = +userInput; var result = 1; for(i=1; i<=3; i++) { result =(i*num); console.log(result); } i get output like this 9 18 27 but i trid to get it in single line