//Write "Hello" every 500 milliseconds:
var myInt = setInterval(function () {
    console.log("Hello");
}, 500);