Calling function from constructor

My code looks something like this:

@Page({
templateUrl: ‘build/pages/myPage/myPage.html’
})

export class Login {
constructor() { myFunction(); }
myFunction(){
}
}

When I call myFunction from inside of the constructor it tells me the function is not defined? How can I call the function from the constructor?

it should be:

constructor() {
this.myFunction();
}

Thanks for the reply, it works!