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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!