What is default timeout in setTimeout() method of JavaScript Window object? -


according w3schools timeout required parameter. possible call without timeout parameter.

function eventhandler(e) {     var t = settimeout(function () {         //cleartimeout(t);         alert('called');     }); } 

the html5 timer spec says:

5) let timeout second method argument, or 0 if argument omitted.


Comments

Popular posts from this blog

javascript - addthis share facebook and google+ url -

java - Simulate the tossing of a coin three times and print out the percentage of cases in which one gets three tails -

c++ - Class declaration error at explicit keyword -