We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
const timerId = setTimeout ( () => console.log('No wati time'), 0 ); clearTimeout(timerId);
setTimeout( () => console.log('Hello after 0.5 seconds!'), 500 ); for(let i = 0; i < 1e10; i++) { // Some logic }
let i =0; const timerId = setInterval ( () => { i++; if(i == 5){ console.log('clearing after 5 retries'); clearInterval(timerId); } var result = LoadData(); console.log(result); if(result == 'success'){ console.log('clearing since it is a success'); clearInterval(timerId); } }, 500 ); const LoadData = () => { // ajax call return 'failure'; }