Tell us what’s happening:
I am not able to understand why do i keep getting error. I have created the string and have passed all the given variables. Is there a syntax error in my code.
Your code so far
function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
var result = " 'We saw a ’ + myAdjective + ’ ’ + myNoun + ’ , got scared and ’ + myVerb + ’ ’ + myAdverb + ’ . ’ ";
return result;
}
wordBlanks(“dog”, “big”, “ran”, “quickly”);
function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
// Your code below this line
var result = "'We saw a' + myAdjective + myNoun + ', got scared and ' + myVerb + ' ' + myAdverb + '.' ";
// Your code above this line
return result;
}
// Change the words here to test your function
wordBlanks("dog", "big", "ran", "quickly");
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/word-blanks/
