How to add one function to another function body by js

how does js add one function to another
Apr.01,2021

can't you call this function directly from another function?


function a(){
    console.log("a");
}

function b (f){
      f();
}
b(a);

similar to mixins ?

Menu