How can someone pass this challenge with the knowledge he just got here

Tell us what’s happening:
I can’t seem to get past this challenge of creating a new string from concatenating other strings to form a madkib

Your code so far

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

// Only change code below this line
var wordBlnk = "If The small " +myNoun+ " hastily "  +myVerb+ "  into the " +myAdjective+ " house, "  +myAdverb+ " without hesitating.";
var wordBlank = wordBlnk.substring(3);
// Change this line
// Only change code above this line

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 7.0; TECNO CX Air) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.93 Mobile Safari/537.36.

Challenge: Word Blanks

Link to the challenge:

You have three problems here.

  1. The variable is supposed to be called “wordBlanks”, not “wordBlnk”.
  2. I have no idea why var wordBlank = wordBlnk.substring(3); is there - remove it.

Your test will pass by fixing those. But I would add:

  1. There is an extra space before “into”. But the test doesn’t fail for that.

An important part of web dev is attention to the tiniest details. Most of the bugs that drive me crazy on the job aren’t huge mistakes but little tiny ones that take forever to track down.

1 Like

Thanks Kevin for your tip, I’ve really been stuck here for a while; so that was a desperate attempt to create the string “wordBlank” as a substring from the “wordBlnk” string.