Basic JavaScript - Word Blanks

Tell us what’s happening:
Hello Guys! I’m having little problem on this world blanks, i have being unable to get this right.

this is what is saying :
wordBlanksshould contain all of the words assigned to the variablesmyNoun,myVerb,myAdjectiveandmyAdverb` separated by non-word characters (and any additional words of your choice).

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 = "My " + "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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Basic JavaScript - Word Blanks

Link to the challenge:

When you put something in double quotes, it is a string literal. (Such as you literally want to print the word My as-is)

But to print the value stored inside a variable you must not use double quotes around it. (Unless you literally want to print the word myNoun)

Thank you. Once again @hbar1st

1 Like

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