Question: const getInformation = function ( number ) { alert ( number + 1 ) ; } An engineer is writing a JavaScript program and wants

const getInformation = function(number){ alert(number +1); } An engineer is writing a JavaScript program and wants to call the above function called getInformation that they wrote. Which of the following would be an example of a valid way to call the function? a.) getInformation: 2; b.) getInformation(2); c.) const getInformation =2; d.) getInformation[2];

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!