- Notifications
You must be signed in to change notification settings - Fork230
Promise#288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
joaquinelio merged 7 commits intojavascript-tutorial:masterfromcortizg:es.javascript.info.1-11-02-pJul 9, 2020
Uh oh!
There was an error while loading.Please reload this page.
Merged
Promise#288
Changes fromall commits
Commits
Show all changes
7 commits Select commitHold shift + click to select a range
cac8c53
traduccion 1-11-02-p
cortizg4d320d0
Update 1-js/11-async/02-promise-basics/02-delay-promise/task.md
cortizg5c63ab4
Update 1-js/11-async/02-promise-basics/article.md
cortizg18550c1
Update 1-js/11-async/02-promise-basics/article.md
cortizg1ae46e8
Update 1-js/11-async/02-promise-basics/article.md
cortizge2b24a9
Upd2 1-js/11-async/02-promise-basics/article.md
cortizge18293e
Upd3 1-js/11-async/02-promise-basics/article.md
cortizgFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
4 changes: 2 additions & 2 deletions1-js/11-async/02-promise-basics/01-re-resolve/solution.md
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
La salida es: `1`. | ||
La segunda llamada a 'resolve' se ignora, porque solo se tiene en cuenta la primera llamada de 'reject/resolve'. Otras llamadas son ignoradas. |
4 changes: 2 additions & 2 deletions1-js/11-async/02-promise-basics/01-re-resolve/task.md
This file contains hidden or 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
10 changes: 5 additions & 5 deletions1-js/11-async/02-promise-basics/02-delay-promise/task.md
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
#Demora con una promesa | ||
La función incorporada `setTimeout`utiliza callbacks.Crea una alternativa basada en promesas. | ||
La función `delay(ms)`debería devolver una promesa. Esa promesa debería resolverse después de`ms`milisegundos, para que podamos agregarle`.then`, así: | ||
```js | ||
function delay(ms) { | ||
//tu código | ||
} | ||
delay(3000).then(() => alert('se ejecuta después de 3 segundos')); | ||
``` |
4 changes: 2 additions & 2 deletions1-js/11-async/02-promise-basics/03-animate-circle-promise/solution.view/index.html
This file contains hidden or 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
10 changes: 5 additions & 5 deletions1-js/11-async/02-promise-basics/03-animate-circle-promise/task.md
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
#Círculo animado con promesa | ||
Vuelva a escribir la función`showCircle`en la solución de la tarea<info:task/animate-circle-callback>para que devuelva una promesa en lugar de aceptar un callback. | ||
Nueva forma de uso: | ||
```js | ||
showCircle(150, 150, 100).then(div => { | ||
div.classList.add('message-ball'); | ||
div.append("Hola, mundo!"); | ||
}); | ||
``` | ||
Tome la solución de la tarea <info:task/animate-circle-callback>como base. |
248 changes: 124 additions & 124 deletions1-js/11-async/02-promise-basics/article.md
Large diffs are not rendered by default.
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
2 changes: 1 addition & 1 deletion1-js/11-async/02-promise-basics/head.html
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.