A little help needed

Tell us what’s happening:
why am i failing it

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 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36 OPR/72.0.3815.186.

Challenge: Word Blanks

Link to the challenge:

if you wrap a variable in quotes, it’s not a variable anymore

var wordBlanks = "The "+ myAdjective + " "+ myNoun+ " " + myVerb + " " + myAdverb + ".";

This is the correct solution. The variable should not be inside quotes. The quotes in the answer are for providing space between words.

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

You can post solutions that invite discussion (like asking how the solution works, or asking about certain parts of the solution). But please don’t just post your solution for the sake of sharing it.
If you post a full passing solution to a challenge and have questions about it, please surround it with [spoiler] and [/spoiler] tags on the line above and below your solution code.

2 Likes

Yeah sure, my intention was to help. New to code camp, will definitely try to encourage people to solve challenges on their own from now on.