Hi i’ve having trouble with this exercise:
In this challenge, we provide you with a noun, a verb, an adjective and an adverb. You need to form a complete sentence using words of your choice, along with the words we provide.
You will need to use the string concatenation operator
+ to build a new string, using the provided variables:
myVerb , and
myAdverb . You will then assign the formed string to the
wordBlanks variable. You should not change the words assigned to the variables.
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.
this is what my code is thus far:
var myNoun = "dog"; var myAdjective = "big"; var myVerb = "ran"; var myAdverb = "quickly"; // Only change code below this line var wordBlanks = "My" + myAdjective + "and dumb" + myNoun + "has" + myVerb + "very" + myAdverb + "into the street."; // Change this line // Only change code above this line
I have gotten passed marks for all the sub assignments except the last one they are as follows:
wordBlanks should be a string.
You should not change the values assigned to
You should not directly use the values “dog”, “ran”, “big”, or “quickly” to create
wordBlanks should contain all of the words assigned to the variables
myAdverb separated by non-word characters (and any additional words in your madlib).
how would I go about achieving a passed score for the last one when the one before that states that I should not directly use the vales of the words for the variables.