How can i call a function whose definition is stored in string? e.g
var dynamicFun = `function Hello(person) { return 'Hello' + person; }`
here the dynamicFun variable can hold any function definition dynamically e.g it can be
var dynamicFun = `function Sum(num) { return num + num; }`
At compile time I would be not aware which function definition is assigned to dynamicFun variable. It is getting assigned at runtime so How can I call the above functions using dynamicFun variable with params (without knowing the actual function name or definition) in javascript/typescript.