Basic JavaScript - Word Blanks

**Tell us what’s happening:**I have been working on this stupid wordblanks exercise and I have tried it 35 times; I have been on it for 3 hours. I want to go to the next exercise and leave that one behind!!!
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
const wordBlanks = ""; // Change this line
// Only change code above this line

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Word Blanks

Link to the challenge:

What problem are you having?

The part where it says “change this line” hasn’t been changed.

Are you putting spaces in between the words?

const wordBlanks = "My " + myAdjective + " " + myNoun + " " + myVerb + " very " + myAdverb;

When I did it like this it passed.

Doing it like this

const wordBlanks = `My ${myAdjective} ${myNoun} ${myVerb} very ${myAdverb}`

Also passes. If you use back ticks and put the variable names inside some brackets like this ${variable}

You won’t have to keep track of all the plus signs and empty quotes

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