Basic JavaScript - Word Blanks

Hi all

I am struggling with this bit of code. I have entered the below, which looks to me to be correct but it keeps failing!
Var wordBlanks = “My” + myAdjective “” + myNoun “” + myVerb + “” + myAdverb + “.”;
any help appreciated!

Your code so far

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

// Only change code below this line
Var wordBlanks = "My" + myAdjective "" + myNoun ""  + myVerb + "" + myAdverb + "."; // Change this line
// Only change code above 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/ Safari/537.36

Challenge: Basic JavaScript - Word Blanks

Link to the challenge:

I see a couple of issues. First, what is “Var”? There is a keyword “var”, but you shouldn’t use that. Modern JS should only use “const” or “let”.

Also, you are missing some concatenations"

Var wordBlanks = "My" + myAdjective "" + myNoun "" ...
                                   ↑           ↑

JS doesn’t know what to do there. You are missing something.

Lastly, once you get it to parse correctly, if you put this:


at the bottom, you will see what is being created - that will help you find the final issues.

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