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 Answer
0
Just put a space after your in first string
"What is your "+oneGoal