I don’t know what’s going on but sometimes I think I’m doing the right code but the system doesn’t accept my answers

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
var wordBlanks = "The"+myNoun+""+myAdjective+""+myVerb+""+myAdverb+"."; // Change this line
// Only change code above this line

Your browser information:

User Agent is: Mozilla/5.0 (iPhone; CPU iPhone OS 15_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Mobile/15E148 Safari/604.1

Challenge: Word Blanks

Link to the challenge:

Here’s what the value of your wordBlanks looks like.

Thedogbigranquickly.

But as you can see in the final test case -

should contain all of the words … separated by non-word characters

So, you should instead have something like this as the value.

The big dog ran quickly.

In other words, you need spaces.

1 Like

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+"."; // Change this line
// Only change code above this line

Your browser information:

User Agent is: Mozilla/5.0 (iPhone; CPU iPhone OS 15_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Mobile/15E148 Safari/604.1

Challenge: Word Blanks

Link to the challenge:

Hi @Mikael3211 !

You still have some spacing issues.
I would suggest adding this console.log(wordBlanks) at the bottom of your code to see the problem.

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+"."; // Change this line
// Only change code above this line
console.log(wordBlanks)

You should see this result in the console.
Screen Shot 2021-11-21 at 7.25.48 PM

You need to add the space in the quotes.

" "

Not this

You also need to add a space after the e inside the quotes

Hope that makes sense

Okay. I will fix my space issues now. Thank you. Sorry I was upset because I’ve been trying to pass this test for so long.

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