function start (argument){
alert("Starting Quiz!");
var time = setInterval( timer(), 1000);
}
function timer(){
console.log("Time: " + counter + " seconds");
}
I found that when setInterval( "timer()", 1000); works as intended repeatably calling my timer function, but when I don't use quotes "" the function is only called once. Why is that?