chore(i18n,curriculum): update translations (#41945)

This commit is contained in:
camperbot
2021-04-30 00:43:46 +09:00
committed by GitHub
parent 3b056aa7b4
commit 2762d4b8e5
14 changed files with 67 additions and 51 deletions

View File

@ -2,8 +2,8 @@
id: bd7123c9c441eddfaeb4bdef
title: Comenta tu código de JavaScript
challengeType: 1
videoUrl: 'https://scrimba.com/c/c7ynnTp'
removeComments: false
videoUrl: 'https://scrimba.com/c/c7ynnTp'
forumTopicId: 16783
dashedName: comment-your-javascript-code
---

View File

@ -32,9 +32,7 @@ Haz una función promesa que maneje el éxito y el fallo. Si `responseFromServer
```js
assert(
code.match(
/if\s*\(\s*responseFromServer\s*\)\s*{\s*resolve\s*\(\s*('|"|`)We got the data\1\s*\)(\s*|\s*;\s*)}/g
)
code.match(/if\s*\(\s*responseFromServer\s*\)\s*{\s*resolve\s*\(\s*('|"|`)We got the data\1\s*\)(\s*|\s*;\s*)}/g)
);
```
@ -42,9 +40,7 @@ assert(
```js
assert(
code.match(
/}\s*else\s*{\s*reject\s*\(\s*('|"|`)Data not received\1\s*\)(\s*|\s*;\s*)}/g
)
code.match(/}\s*else\s*{\s*reject\s*\(\s*('|"|`)Data not received\1\s*\)(\s*|\s*;\s*)}/g)
);
```

View File

@ -51,9 +51,7 @@ Debes usar desestructuración para crear la variable `today`.
```js
assert(
code.match(
/(var|let|const)\s*{\s*(today[^}]*|[^,]*,\s*today)\s*}\s*=\s*HIGH_TEMPERATURES(;|\s+|\/\/)/g
)
code.match(/(var|let|const)\s*{\s*(today[^}]*|[^,]*,\s*today)\s*}\s*=\s*HIGH_TEMPERATURES(;|\s+|\/\/)/g)
);
```
@ -61,9 +59,7 @@ Debes usar desestructuración para crear la variable `tomorrow`.
```js
assert(
code.match(
/(var|let|const)\s*{\s*(tomorrow[^}]*|[^,]*,\s*tomorrow)\s*}\s*=\s*HIGH_TEMPERATURES(;|\s+|\/\/)/g
)
code.match(/(var|let|const)\s*{\s*(tomorrow[^}]*|[^,]*,\s*tomorrow)\s*}\s*=\s*HIGH_TEMPERATURES(;|\s+|\/\/)/g)
);
```