Basic JavaScript - Word Blanks

Tell us what’s happening:
Describe your issue in detail here.

Hi guys, please I need help with this.
I’ve been stuck here for hours and I don’t know what I’m doing wrongly.
Your code so far

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

// Only change code below this line
const wordBlanks = "My " + "myAdjective " + "myNoun " + "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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Basic JavaScript - Word Blanks

Link to the challenge:

you just to need to remove “” from your variable names in the console.log.
try it

1 Like

Your code logs the following string: "My myAdjective myNoun myVerb myAdverb".
You should be inserting variables into your string, not strings. Remove the quote marks from the variables. You’ll also need to insert string spaces (" ") in between your variables, otherwise they’ll all just run into each other.

1 Like

Thanks a lot. That really helped :slight_smile:

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