Providing the code, I'm running in AWS lambda function
exports.handler = (event, context, callback) => {
//
mqfunc1(func2);
};
var func2 = function(data) {
console.log('got data: '+data);
};
var mqfunc1 = function(callback) {
var myCallback = function(data) {
console.log('got data: '+data);
};
var usingItNow = function(callback) {
callback('get it?');
};
};
How could I print the same message using callback function within the exports.handler?