Quick question: How do I get a pointer to a pre-declared function in javascript.
Say in my .js file I have
function a() {
var bref = `a pointer/ref to b() here`
}
function b(param) {
...
}
I want bref to be simply a pointer to the function b and not just the result of a call to b()
Edit: Forgot to mention: function b takes in one parameter i.e b(param)
Have tried bref = b