This is the most basic Nested Callback I could think of, and it is giving me an error[posted below]
function a (callback) {
console.log('first print a')
callback()
}
function b (callback) {
console.log('b after a')
callback()
}
function c () {
console.log('c after b')
}
a(b(c))
Output/Error -
b after a
c after b
first print a
/nodejs/file.js:33
callback()
^
TypeError: callback is not a function