How to geta space?


#1


#2

To put a space and make it right you have 2 ways:

First way (look at the space between "called" and the quote mark:

console.log("I know someone called " + names[i]);

Secend way:

console.log("I know someone called" + " " + names[i]);

^ The quotes marks between the two + play the role as a space


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.