205k views
1 vote
Call the favoriteFruit function with parameter "pineapple". I'm stuck and probably doing it all wrong. Can anyone help?

Call the favoriteFruit function with parameter "pineapple". I'm stuck and-example-1

1 Answer

3 votes

In this example, we simply have to call the function.

favoriteFruit("pineapple");

Your output will be "My favorite fruit is pineapple."

User Ultraloveninja
by
5.7k points