Can Anyone help me write this in java script
faziz6006 (2)

Exercise One: In this exercise you will be creating two functions.

// Function One: Will be called 'multiply'.
// This function will take two parameters, both numbers
// This function will return the two numbers multiplied together.

// Function Two: Will be called 'calculator'.
// This function will take three parameters,
// First will be a callback function,
// Second and Third will be numbers.
// This function will return the two numbers passed into the callback function.

// NOTE: You can use the multiply function to test the calculator function, but understand that
// other callback functions will be passed into it as a test.

You are viewing a single comment. View All
Answered by mwilki7 (280) [earned 5 cycles]
View Answer
mwilki7 (280)

@faziz6006
Function 2 will look something like:

function secondFunc(First, Second, Third)
{
    ....
}

"First" is going to be the name of a function passed as a parameter to "secondFunction()"
Next you just need a return statement before you call "First(...)" with Second and Third as parameters being passed to First