Please I need help in finding the solution to this project
The Challenge:
n 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: myNoun , myAdjective , 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.
My solution:
var myNoun = "dog";
var myAdjective = "big";
var myVerb = "ran";
var myAdverb = "quickly";
// Only change code below this line
var wordBlanks = myNoun + myVerb + myAdjective + myAdverb + "."; // Change this line
// Only change code above this line
It looks like you don’t have any spaces in between your words.
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
Thanks for the correction. This was my first post.
Please I still can’t get past this line.
var myNoun = "dog";
var myAdjective = "big";
var myVerb = "ran";
var myAdverb = "quickly";
// Only change code below this line
var wordBlanks = "My" +""+ myAdjective +""+ myNoun +""+ myVerb +""+ myAdverb; // Change this line
// Only change code above this line
// running tests
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). // tests completed