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 ?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b41f78-2c5c9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b41f78-2c5c9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?