Add resource paragraph before links
This commit is contained in:
1 parent
02883e50f0
commit
fed1803243
1606 files changed
+3210
-6
No files matched your search
+2
@@ -2,6 +2,8 @@
|
||||
|
||||
The Event Loop is one of the most important aspects to understand about Node.js. Why is this so important? Because it explains how Node.js can be asynchronous and have non-blocking I/O, it explains the "killer feature" of Node.js, which made it this successful.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [The Node.Js Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#what-is-the-event-loop)
|
||||
- [JavaScript Visualized: Event Loop](https://dev.to/lydiahallie/javascript-visualized-event-loop-3dif)
|
||||
- [What the heck is the event loop anyway?](https://www.youtube.com/watch?v=8aGhZQkoFbQ)
|
||||
+2
@@ -2,6 +2,8 @@
|
||||
|
||||
The setTimeout runs a function after the specified period expires. Times are declared in milliseconds.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [JavaScript MDN Docs](https://developer.mozilla.org/en-US/docs/Web/API/setTimeout)
|
||||
- [W3Schools – JavaScript - setTimeOut](https://www.w3schools.com/jsref/met_win_settimeout.asp)
|
||||
- [setInterval and setTimeout: timing events](https://www.youtube.com/watch?v=kOcFZV3c75I)
|
||||
|
||||
+2
@@ -4,5 +4,7 @@ The `setInterval()` method helps us to repeatedly execute a function after a fix
|
||||
|
||||
`setInterval()` is similar to setTimeout, with a difference. Instead of running the callback function once, it will run it forever, at the specific time interval you specify (in milliseconds):
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [Scheduling: setTimeout and setInterval](https://javascript.info/settimeout-setinterval)
|
||||
- [What is the use of setInterval() method in JavaScript?](https://www.geeksforgeeks.org/what-is-setinterval-in-javascript/)
|
||||
+2
@@ -2,4 +2,6 @@
|
||||
|
||||
The callback hell is when we try to write asynchronous JavaScript in a way where execution happens visually from top to bottom, creating a code that has a pyramid shape with many }) at the end.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [Callback Hell](http://callbackhell.com/)
|
||||
+2
@@ -2,5 +2,7 @@
|
||||
|
||||
A callback function is a function passed into another function as an argument, which is then invoked inside the outer function to complete some kind of routine or action.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [Callbacks in JavaScript](https://javascript.info/callbacks)
|
||||
- [Callback Functions](https://developer.mozilla.org/en-US/docs/Glossary/Callback_function)
|
||||
+2
@@ -3,6 +3,8 @@
|
||||
`async/await` is a special syntax to work with promises in a more comfortable fashion.
|
||||
We use `async` keyword to declare a async function that return a Promise, and the `await` keyword makes a function wait for a Promise.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [Async/await](https://javascript.info/async-await)
|
||||
- [async function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function)
|
||||
- [JavaScript Promises - Chaining](https://www.codeguage.com/courses/advanced-js/promises-chaining)
|
||||
|
||||
+2
@@ -2,6 +2,8 @@
|
||||
|
||||
Promises are a much better way to work with asynchronous code in JavaScript than the old and error-prone callback approach. They were introduced into JavaScript with ECMAScript 6. Using promises, we can manage extremely complex asynchronous code with rigorous error-handling setup, write code in a more or less synchronous style, and keep ourselves from running into the so-called callback hell.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [A Detailed Introduction to Promises](https://www.codeguage.com/courses/advanced-js/promises-introduction)
|
||||
- [JavaScript Promises - Basics](https://www.codeguage.com/courses/advanced-js/promises-basics)
|
||||
- [JavaScript Promises - Chaining](https://www.codeguage.com/courses/advanced-js/promises-chaining)
|
||||
|
||||
@@ -10,4 +10,5 @@ Many functions provided by browsers, especially the most interesting ones, can p
|
||||
|
||||
So even though you may not have to implement your own asynchronous functions very often, you are very likely to need to use them correctly.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
Reference in new issue
Block a user