Concantenation code isnt working

Tell us what’s happening:
my concantenation code isnt working

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 + "alsatian" + myNoun +  "that" + myVerb + "very" + 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/80.0.3987.132 Safari/537.36.

Challenge: Word Blanks

Link to the challenge:
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/word-blanks

Hi,

the check you’re failing is:

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 in your madlib).

It says you should have non-word characters in between the words coming form your variables at the top (most likely spaces). Just add some spaces before and after the string you concatenate.

var wordBlanks = "The " + myAdjective + " spmething " + myNoun +  " something else " + myVerb;
1 Like

Thank you , that little problem nearly gave me a headache because i was wondering what i did wrong .