Well, first see my code:
function cubosSuma(a,b,callback) {
var res = (a*a*a)+(b*b*b);
callback(res);
}
function resultado(res) {
console.log(res);
};
cubosSuma(3,2,resultado); //line 8;
What I want to understand is why I can call 'resultado' in cubosSuma (line 8) if it is supposed to be that a function has its own scope. I mean, why is it possible to get to callback(res) from another function?