Basic javascript: word blankss

Tell us what’s happening:

Your code so far


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

// Only change code below this line
var wordBlanks = "The " + 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; rv:81.0) Gecko/20100101 Firefox/81.0.

Challenge: Word Blanks

Link to the challenge:

Hey Fellow Camper

In your code, you have saved the values of the various words in the variables like you have done above e.g.

var myNoun  = "dog";

so each variable holds value. And in your code below

var wordBlank = ""

you are using the plus operator(+) to add the whole values which are in the variables you declared earlier, along with the others in the double quotation marks (string) and holding them in the wordBlanks variable.

Hope this helps.

1 Like

yeah it did thanks for your help