Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
ES6
Promises
Asynchronicity
Event loop
Microtask queue
https://jakearchibald.com/2015/tasks-microtasks-queues-and-schedules/
Variables:
Avoid global variables:
Variables can be accessed in local scope or global scope.
Local and global variable with the same name => javascript will prioritize the local variable.
Local variables are deleted once the local execution context is complete. Global variables
References
Use const or let for references
Avoid using var (https://developer.mozilla.org/en-US/docs/Glossary/Hoisting)