Add content migration script
This commit is contained in:
1 parent
16ebf98164
commit
f9911b6597
1942 files changed
+5346
-7063
No files matched your search
+3
-3
@@ -2,6 +2,6 @@
|
||||
|
||||
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.
|
||||
|
||||
<BadgeLink colorScheme="yellow" badgeText="Read" href="https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#what-is-the-event-loop">The Node.Js Event Loop</BadgeLink>
|
||||
<BadgeLink colorScheme="yellow" badgeText="Read" href="https://dev.to/lydiahallie/javascript-visualized-event-loop-3dif">JavaScript Visualized: Event Loop</BadgeLink>
|
||||
<BadgeLink badgeText='Watch' href='https://www.youtube.com/watch?v=8aGhZQkoFbQ'>What the heck is the event loop anyway?</BadgeLink>
|
||||
- [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)
|
||||
+4
-5
@@ -2,8 +2,7 @@
|
||||
|
||||
The setTimeout runs a function after the specified period expires. Times are declared in milliseconds.
|
||||
|
||||
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
|
||||
<BadgeLink badgeText='Read' colorScheme='yellow' href='https://developer.mozilla.org/en-US/docs/Web/API/setTimeout'>JavaScript MDN Docs</BadgeLink>
|
||||
<BadgeLink badgeText='Read' colorScheme="yellow" href='https://www.w3schools.com/jsref/met_win_settimeout.asp'>W3Schools – JavaScript - setTimeOut</BadgeLink>
|
||||
<BadgeLink badgeText='Watch' href='https://www.youtube.com/watch?v=kOcFZV3c75I'>setInterval and setTimeout: timing events</BadgeLink>
|
||||
<BadgeLink badgeText='Watch' href='https://www.youtube.com/watch?v=z9lJb4D3nJY'>setTimeout EXPLAINED in 5 minutes!</BadgeLink>
|
||||
- [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)
|
||||
- [setTimeout EXPLAINED in 5 minutes!](https://www.youtube.com/watch?v=z9lJb4D3nJY)
|
||||
+2
-3
@@ -4,6 +4,5 @@ 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):
|
||||
|
||||
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
|
||||
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://javascript.info/settimeout-setinterval'>Scheduling: setTimeout and setInterval</BadgeLink>
|
||||
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.geeksforgeeks.org/what-is-setinterval-in-javascript/'>What is the use of setInterval() method in JavaScript?</BadgeLink>
|
||||
- [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/)
|
||||
+1
-2
@@ -2,5 +2,4 @@
|
||||
|
||||
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.
|
||||
|
||||
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
|
||||
<BadgeLink colorScheme='yellow' badgeText='Read' href='http://callbackhell.com/'>Callback Hell</BadgeLink>
|
||||
- [Callback Hell](http://callbackhell.com/)
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
# Callbacks
|
||||
|
||||
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.
|
||||
|
||||
- [Callbacks in JavaScript](https://javascript.info/callbacks)
|
||||
- [Callback Functions](https://developer.mozilla.org/en-US/docs/Glossary/Callback_function)
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
# Callbacks
|
||||
|
||||
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.
|
||||
|
||||
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
|
||||
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://javascript.info/callbacks'>Callbacks in JavaScript</BadgeLink>
|
||||
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://developer.mozilla.org/en-US/docs/Glossary/Callback_function'>Callback Functions</BadgeLink>
|
||||
+4
-5
@@ -3,8 +3,7 @@
|
||||
`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.
|
||||
|
||||
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
|
||||
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://javascript.info/async-await'>Async/await</BadgeLink>
|
||||
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function'>async function</BadgeLink>
|
||||
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.codeguage.com/courses/advanced-js/promises-chaining'>JavaScript Promises - Chaining</BadgeLink>
|
||||
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.freecodecamp.org/news/javascript-async-await-tutorial-learn-callbacks-promises-async-await-by-making-icecream/'>JavaScript Async/Await Tutorial – Learn Callbacks, Promises, and Async/Await in JS by Making Ice Cream</BadgeLink>
|
||||
- [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)
|
||||
- [JavaScript Async/Await Tutorial – Learn Callbacks, Promises, and Async/Await in JS by Making Ice Cream](https://www.freecodecamp.org/news/javascript-async-await-tutorial-learn-callbacks-promises-async-await-by-making-icecream/)
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
# Promises
|
||||
|
||||
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.
|
||||
|
||||
- [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)
|
||||
- [JavaScript Promises - Error Handling](https://www.codeguage.com/courses/advanced-js/promises-error-handling)
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
# Promises
|
||||
|
||||
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.
|
||||
|
||||
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
|
||||
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.codeguage.com/courses/advanced-js/promises-introduction'>A Detailed Introduction to Promises</BadgeLink>
|
||||
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.codeguage.com/courses/advanced-js/promises-basics'>JavaScript Promises - Basics</BadgeLink>
|
||||
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.codeguage.com/courses/advanced-js/promises-chaining'>JavaScript Promises - Chaining</BadgeLink>
|
||||
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.codeguage.com/courses/advanced-js/promises-error-handling'>JavaScript Promises - Error Handling</BadgeLink>
|
||||
+1
-3
@@ -10,6 +10,4 @@ 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.
|
||||
|
||||
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
|
||||
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Asynchronous/Introducing'>Introducing asynchronous JavaScript
|
||||
</BadgeLink>
|
||||
|
||||
Reference in new issue
Block a user