Standard
You don't need to create the variable, but it's a good practice as you can use that variable with clearInterval to stop the currently running interval.
var int = setInterval("doSomething()", 5000 ); /* 5 seconds */
var int = setInterval(doSomething, 5000 ); /* same thing, no qu...