Last active
May 29, 2019 03:06
-
-
Save davidjsalazarmoreno/4b2ba459fe87d8857db29214ef354274 to your computer and use it in GitHub Desktop.
Entendiendo el Event Loop o Bucle de Eventos en Javascript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(() => { | |
console.log('1. Hola'); | |
setTimeout(() => { | |
console.log('2. Mundo'); | |
}); | |
setTimeout(() => { | |
console.log('3. A todos'); | |
}, 0); | |
console.log('4. Este es un mensaje extra'); | |
console.log('5. ¿Acertaste el orden de la salida?'); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment