Metoda Settimeout () odbiera drugi parametr w

/*
	The setTimeout() function takes two arguments. One for the function to call and one for
	the time delay in milliseconds.
*/
//Example for alerting a user after 1 hour.

function timeUp(){
	alert("You have crossed your screen time limit.");
  	location.reload();
}

setTimeout(timeUp, 3.6 * Math.pow(10, 6)); //1 hour = 3.6 * 10^6 milliseconds.
LOLMAN_KS