What will be the result of the code?
 function sayHello() { return setTimeout("alert('Hello')", 2 * 60 * 1000); } clearTimeout(sayHello()); 
Explanation
function setTimeout will set the timeout and clearTimeout() method will cancel it.

Fix it! Not "allert" but "alert".

2017 Jun 6, 11:22:33 AM

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback