Create timer and event handler on JS side

Nov 28, 2015 at 8:25 PM
I need to create a timer on my JS so it can execute a function on my javascript every time the timer time set is elapsed. How can I accomplish that?. I have used setInterval or setTimeout functions but it seems that they are not part of JINT since it is based on ECMASCRIPT and this functions are not native.

Can someone tell me how I can do this?.