Basic JavaScript - Word Blanks

Tell us what’s happening:

Why are these variables not passing all the check marks before submission?

const myNoun = “dog”;
const myAdjective = “big”;
const myVerb = “ran”;
const myAdverb = “quickly”;

// Only change code below this line

var wordBlank = "The " + myAdjective + " " + myNoun + " " + myVerb + " " + myAdverb + " " + “.”;
console.log(wordBlank);

Your code so far

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

// Only change code below this line

var wordBlank = "The " + myAdjective + " " + myNoun + " " + myVerb + " " + myAdverb + " " + ".";
console.log(wordBlank);

Your browser information:

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

Challenge Information:

Basic JavaScript - Word Blanks

it is not declared with var in the starting code, so the tests do not recognise this as correct

also, wordBlanks not wordBlank

1 Like

When I switch it up to const, Is still didn’t pass all the test case. However, it did console all the strings correctly.

did you correct the name of the variable?

Yes I did. here is the reversed version of the code:

const wordBlank = ("The " + myAdjective + " " + myNoun + " " + myVerb + " " + myAdverb + " " + “.”);

console.log(wordBlank);

The variable wordBlank is incorrect. It should be wordBlanks. You forgot to add one s letter :smiley:.

Haha, thanks. You are correct…