I'm trying to use setTimeout, But it doesn't work. Any help is appreciated.
Anyone know how to fix this?
var button = document.getElementById("reactionTester");
var start = document.getElementById("start");
function init() {
var startInterval/*in milliseconds*/ = 1000;
setTimeout(startTimer(), startInterval);
}
function startTimer() {
document.write("hey");
}