for example, if you want to write a callback, you can use promise:
function a(){
return new Promise(function(res,rej){
res()
})
}
a().then()
but now I want the code to run directly in the browser instead of going through webpack (ES6 to 5).
then use
var a = function(x){x();}
a(function(){
console.log("")
})
//