I want to declare a var
that can hold a function, but I want to assign the function only later.
How do I declare such a var, e.g. when it takes no parameters and returns nothing?
I tried this but that's not accepted:
private var myFunction : ()
Later in the code, I'd assign code to it like this, I imagine:
myFunction = () => { doSomething() }