how to call the b function, since b will return the message.Please see the below snippet.
i have posted this question related to this. But i didn't get any answer so i split the question.
how to get the string from the below snippet.
const a = () => {
return b((log) => {
return `log message will be ${log.message}`
})
}
if i execute a() // it will show
(log) => {
return `log message will be ${log.message}`
}
confused of this format i tried a()(), but throws error, how should i call this b method