Basic JavaScript: Word BlanksPassed

Tell us what’s happening:
Can anybody tell me what I’ve done wrong in this task?

Your code so far


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

// Only change code below this line
var wordBlanks = "My" + "" + "myNoun" + "" + " is " + "" + "myAdjective"+ "" +  "and" + "" + "myVerb" + ""+ "myAdverb"; // Change this line
// Only change code above this line

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 9; LM-X420) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Mobile Safari/537.36.

Challenge: Word Blanks

Link to the challenge:

Hello~!

As a hint, "myNoun" is a string, while myNoun is a variable. You can see the difference if we use the syntax highlighter:

const name = "nhcarrigan"
console.log("name") //prints "name"
console.log(name) //prints "nhcarrigan"
1 Like

Thanks very much I got it now.I have one more question why do I have to make spaces inbetween the doublequotes?

because to make a sentence you need to write spaces between the words - if you don’t write them, they are not added automatically

love it thank for the valuable information. . . . . . . . . .