Question: CHALLEN6.6.1: Functions ACTIVITY Reset Assign a variable madLib to a function expression that has five parameters in the order. an adjective, two nouns, a verb

CHALLEN6.6.1: Functions ACTIVITY Reset Assign a variable madLib to a function expression that has five parameters in the order. an adjective, two nouns, a verb and an adverb. The function should return a mad lib string value by substituting the parameter values into the following template: The [adjective] [noun1] [adverb] [verb] the [noun2]. For example: madLib("lazy", "dog", "moon", "smashed", "quietly) returns "The lazy dog quietly smashed the moon." 1 2 * Your solution goes here*/ 4Code will be tested once with parameters: "lazy", "dog", "moon","smashed", "quietly" 5 and again with parameters: "bored", "rat", "city", "became", "gently" 6 console. log(madLibC"lazy", "dog", "moon", "smashed", "quietly">); 7 Check Next
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
