Basic JavaScript - Word Blanks

Tell us what’s happening:

I put my answer and ran the tests, but it told me it was incorrect. So I went to the forums to look at the correct answer, and to my surprise, it had the same answer that I had put. I copied the answer from the forum just to make sure it wasn’t a spelling mistake, AND IT STILL SHOWED IT WAS WRONG.

I am utterly frustrated at the moment. Please help me:(

Your code so far

const myNoun = "dog";
const myAdjective = "big";
const myVerb = "ran";
const myAdverb = "quickly";

const wordBlanks = "The " + myAdjective + "black " + myNoun + "jumped and " + myVerb + "home " + myAdverb + "."; // Only change this line;

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36

Challenge Information:

Basic JavaScript - Word Blanks

Add this to the end of your code:

console.log(wordBlanks)

Always print out your variables to troublshoot

2 Likes

I definitely recommend against copying code from the forum. A lot of wrong code is here on the forum. Also, having the ‘right’ answer is way tess important than practicing your debugging skills.

Here, you’ll see that you didn’t put in enough spaces if you console.log your variable.

1 Like

Hi there! Thanks to this, your output will be visible and easy to fix

We could also let them console.log themselves so they practice debugging? The learner is supposed to be the hero of the thread!

1 Like

Yep, that’s so right, edited my post :innocent:

1 Like