I would like to ask you to explain one thing to me. I just started learning a concept of "Asynchronous Programming" in JavaScript but for some reason I struggle to "visualize" this code in my head.
function add(a, b, callback) {
callback(a + b);
}
add(10, 10, function(sum) {
console.log(sum);
});
It's an extremely simple piece of code and yet I can't get around it. I mean, I know that it uses a callback via anonymous function but could you please explain each step and its order after we call the function?