startInterval Without startInterval: setInterval(myFunction, 1000); myFunction(); With startInterval: startInterval(myFunction, 1000);