I recently started using NodeJS, but when I do

I'm getting errors such as:

What's the best way to do this?
My current solution is like this:
var that = this;
setTimeout(function()
{
 that.myMethod();
}, 3000);
				
				you can use the old that=this trick, or use bind, since it's sure to work in node.js:
setTimeout(this.myOtherMethod.bind(this), 10);