kay1
December 27, 2022, 1:31pm
1
Tell us what’s happening:
Describe your issue in detail here.
Your code so far
const myNoun = "dog";
const myAdjective = "big";
const myVerb = "ran";
const myAdverb = "quickly";
// Only change code below this line
const wordBlanks = "The " + "myAdjective " + "myNoun" + "myVerb " + "myAdverb "
console.log(wordBlanks); // Change this line
// Only change code above this line
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
Challenge: Basic JavaScript - Word Blanks
Link to the challenge:
hbar1st
December 27, 2022, 1:37pm
2
look at the console. You have some spacing problems in your wordBlanks string.
kay1
December 27, 2022, 1:43pm
3
I’m not sure I get what you saying, I was using spacing to allow my sentence to have spaces in between the words
i think it the space cause if you just do a string+ another string, there’s no space.
The problem is that you are putting your variables in strings, your are meant to just separate them with quotes that have spaces like this :
"The " + " " + modEdit+ " " + modEdit+ " " + modEdit+ " " + modEdit
1 Like
hbar1st
December 27, 2022, 3:06pm
6
good catch. (I missed that)
kay1
December 27, 2022, 3:10pm
7
Thanks it worked , i passed the code
system
Closed
June 28, 2023, 3:11am
8
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.