Tell us what’s happening:
Your code so far
function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
// Your code below this line
var result = "";
// Your code above this line
return result;
}
// Change the words here to test your function
wordBlanks("dog,"+ "myNoun" + "big," + "myAdjective" +"ran," +"myVerb" +"myAdverb"+ "quickly");
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/word-blanks
You did not tell us what you have a question about? Also, can you please edit your topic title with a brief description of your problem with the challenge?
I am not getting what to do here in this question from 2nd point
Forget about changing this section
wordBlanks("dog,"+ "myNoun" + "big," + "...
just reset your code. You have to use the parameters for the function wordBlanks
to create a new sentence.
any1 would provide code for this as i am not getting what its saying
function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
var result = "";
return result
+ myAdjective + " "
+ myNoun + " "
+ myVerb + " "
+ myAdverb + ".";
}
What the exercise is asking you is construct a grammatically correct sentence given a noun, adjective, verb, and adverb. Like a sentence, each word must be separated by non-word characters such as space or dot.
So, you must correctly order each argument and put separating characters between them.