JavaScript
Callback Functions
If you don't know what callback functions are, then today is your lucky day! In today's article, we will be discussing what a callback function means. To be honest, if you have already been coding in javascript for a while then you have possibly already implemented some type of callback. We will assume that you have some basic knowledge of how javascript works and what functions are to start with. If not, please feel free to check out the functions mdn docs before getting into this topic, I'm sure it will help understand a lot more.
<script>
function msg(a,b){
console.log(a)
b()
console.log(a+b)
}
msg(9,function(){console.log("hello..")})
</script>