1// Create a callback in the probs, in this case we call it 'callback'
2function newCallback(callback) {
3 callback('This can be any value you want to return')
4}
5
6// Do something with callback (in this case, we console log it)
7function actionAferCallback (callbackData) {
8 console.log(callbackData)
9}
10
11// Function that asks for a callback from the newCallback function, then parses the value to actionAferCallback
12function requestCallback() {
13 newCallback(actionAferCallback)
14}