How to Pass Function Name as Variable in Javascript

Imagine that we have a javascript function named functionCaller that accept function name as its parameter. Let’s call it callBackFunction. Then, from the inside of functionCaller, we will call the callBackFunction.