Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 504 Bytes

File metadata and controls

21 lines (14 loc) · 504 Bytes

Callback Function

Run the callback function's result from your function

Instructions

  • The function would receive 3 arguments called a, b and cb (cb is the callback function)
  • Add a and b and use the result as argument to the callback function
  • Return the callback function cb result
Example - let us assume the callback function just prints the argument passed
Input - 3, 4, cb
Output - 7

Input - 5, 8, cb
Output - 13

Run npm run test:file run_callback to test your code