var sentence = "It was really" + "hot" + ", and we" + "laughed" + "ourselves" + "silly.";
+
to build a new string, using the provided variables: myNoun
, myAdjective
, myVerb
, and myAdverb
. You will then assign the formed string to the result
variable.
You will also need to account for spaces in your string, so that the final sentence has spaces between all the words. The result should be a complete sentence.
wordBlanks("","","","")
should return a string.'
testString: 'assert(typeof wordBlanks("","","","") === ''string'', ''wordBlanks("","","","")
should return a string.'');'
- text: 'wordBlanks("dog", "big", "ran", "quickly")
should contain all of the passed in words separated by non-word characters (and any additional words in your madlib).'
testString: 'assert(/\bdog\b/.test(test1) && /\bbig\b/.test(test1) && /\bran\b/.test(test1) && /\bquickly\b/.test(test1),''wordBlanks("dog", "big", "ran", "quickly")
should contain all of the passed in words separated by non-word characters (and any additional words in your madlib).'');'
- text: 'wordBlanks("cat", "little", "hit", "slowly")
should contain all of the passed in words separated by non-word characters (and any additional words in your madlib).'
testString: 'assert(/\bcat\b/.test(test2) && /\blittle\b/.test(test2) && /\bhit\b/.test(test2) && /\bslowly\b/.test(test2),''wordBlanks("cat", "little", "hit", "slowly")
should contain all of the passed in words separated by non-word characters (and any additional words in your madlib).'');'
```