Basic JavaScript - Word Blanks

My code does not go through


should contain all of the words assigned to the variables

separated by non-word characters (and any additional words of your choice).

Your code so far

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

// Only change code below this line
const wordBlanks = +myNoun +myAdjective +myVerb +myAdverb ; // Change this line
// Only change code above this line

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0

Challenge: Basic JavaScript - Word Blanks

Link to the challenge:

This is not what you are expected to do here. With some small changes, the output of your code would be something like this:

As you can see, what is printed in the console doesn’t make sense.

The variable wordBlanks should include strings, and blank spaces between words in order to make a meaningful sentence:

const X = "Word, or words " + myFirstVariable + " a second word, or words " + mySecondVariable ... + "."

so i did as them and it still doesn’t pass

const wordBlanks = "The "+myNoun+“with “+myAdjective+” arms “+myVerb+ myAdverb+” .”

Looking at your code, I see there are curly quotation marks (like used in Word processors) starting with the word with. Curly quotes in your code would cause an error.
"The "+myNoun+“with “+myAdjective+” arms “+myVerb+ myAdverb+” .”

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