Basic JavaScript - Word Blanks

its saying ’ wordBlanks should contain all of the words assigned to the variables myNoun , myVerb , myAdjective and myAdverb separated by non-word characters (and any additional words of your choice).’
this to me sounds like i should be typing dog instead of myNoun. but if i do it asked me not to directly use the words. i dont understand this question.

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 " + "is " + "myAdjective " + ", and he " + "myVerb " + "after a cat " + "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/117.0.0.0 Safari/537.36 Edg/117.0.2045.60

Challenge: Basic JavaScript - Word Blanks

Link to the challenge:

1 Like

Hello there. For this challenge, instead of quotes like

"a string"

, the challenge wants a variable like:

const myStringVariable = "w"; 

const phrase = "My favorite letter is " + myStringVariable; 

Happy learning. :slightly_smiling_face:

1 Like

firstly your answer helped then my second problem for that question i realized i needed a space either side of a string literal not at the end of the identifier like i was trying to do…

1 Like