Basic JavaScript - Word Blanks

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" + myAdjective + " " + myNoun + " " + myVerb + " " + myAdverb; // Change this line
// Only change code above this line, what is wrong here?

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; M2006C3MII) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Mobile Safari/537.36

Challenge: Basic JavaScript - Word Blanks

Link to the challenge:

1 Like

Mod Edit: removed solution

Try removing The

Also, consider using let or const instead of var when declaring a variable, because var can be overwritten by accident and thus cause a lot of trouble.

If you put:


at the bottom of your code, you’ll be able to see the issue.

Try adding space after “The”.
Also logging out your result is great idea. I will use that tip as well.

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