Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

event loop javascript

console.log('Hi!');

setTimeout(() => {
    console.log('Execute immediately.');
}, 0);

console.log('Bye!');

// print order
// 'Hi!'
// 'Bye!'
// 'Execute immediately.'
Source by www.javascripttutorial.net #
 
PREVIOUS NEXT
Tagged: #event #loop #javascript
ADD COMMENT
Topic
Name
3+8 =