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”?

9th May 2021, 2:20 AM
Daniel Lopez
1 ответ
0
Just put a space after your in first string "What is your "+oneGoal
9th May 2021, 2:29 AM
YUGRAJ