0
How to space an output
In JS, if I want a concatenated output to have a space, how shout I do it? My example: variable oneGoal {//code} console.log (“What is your” + oneGoal) Output: What is yourobjective Expected output: What is your objective How can I put a space between “your” and “objective”?
1 Resposta
0
Just put a space after your in first string
"What is your "+oneGoal