chore(i18n,learn): processed translations (#45084)

This commit is contained in:
camperbot
2022-02-12 21:01:07 +05:30
committed by GitHub
parent 114efcf9f0
commit 23d706f3e6
16 changed files with 121 additions and 28 deletions

View File

@@ -36,7 +36,7 @@ return "Yes";
# --instructions--
请使用逻辑或运算符把两个 `if` 语句合并为一个语句,如果 `val` 不在 `10``20` 之间(包括 10 和 20返回 `Outside`。 否则,返回 `Inside`
请使用逻辑或运算符把两个 `if` 语句合并为一个语句,如果 `val` 不在 `10``20` 之间(包括不是 10 和 不是 20返回 `Outside`。 否则,返回 `Inside`
# --hints--

View File

@@ -9,7 +9,7 @@ dashedName: declare-javascript-variables
# --description--
在计算机科学中,<dfn>数据</dfn>就是一切,它对于计算机意义重大。 JavaScript 提供种不同的<dfn>数据类型</dfn>,它们是 `undefined`(未定义)、`null`(空)、`boolean`(布尔型)、`string`(字符串)、`symbol``number`(数字)、`bigint`(可以表示任意大的整数)和 `object`(对象)。
在计算机科学中,<dfn>数据</dfn>就是一切,它对于计算机意义重大。 JavaScript 提供种不同的<dfn>数据类型</dfn>,它们是 `undefined`(未定义)、`null`(空)、`boolean`(布尔型)、`string`(字符串)、`symbol``number`(数字)、`bigint`(可以表示任意大的整数)和 `object`(对象)。
例如,计算机区分数字,例如 `12`,和由字符组成的字符串 `strings`,例如 `"12"``"dog"``"123 cats"`。 计算机可以对数字执行数学运算,但不能对字符串执行数学运算。

View File

@@ -29,7 +29,7 @@ myFun();
修改函数 `abTest``a``b` 小于 `0` 时,函数立即返回一个 `undefined` 并退出。
**提示**
记住 [`undefined` 是一个关键字](/javascript-algorithms-and-data-structures/basic-javascript/understanding-uninitialized-variables),而不是一个字符串。
记住 [`undefined` 是一个关键字](https://chinese.freecodecamp.org/news/how-to-install-arch-linux/#how-to-install-arch-linux),而不是一个字符串。
# --hints--

View File

@@ -568,11 +568,11 @@ async (getUserInput) => {
const addExerciseTwoRes = await fetch(url + `/api/users/${_id}/exercises`, {
method: 'POST',
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
body: `description=${expected.description}&duration=${expected.duration}&date=1990-01-02`
body: `description=${expected.description}&duration=${expected.duration}&date=1990-01-03`
});
if (addExerciseRes.ok && addExerciseTwoRes.ok) {
const logRes = await fetch(
url + `/api/users/${_id}/logs?from=1989-12-31&to=1990-01-03`
url + `/api/users/${_id}/logs?from=1989-12-31&to=1990-01-04`
);
if (logRes.ok) {
const { log } = await logRes.json();
@@ -591,6 +591,16 @@ async (getUserInput) => {
} else {
throw new Error(`${limitRes.status} ${limitRes.statusText}`);
}
const filterDateBeforeLimitRes = await fetch(
url + `/api/users/${_id}/logs?from=1990-01-02&to=1990-01-04&limit=1`
);
if (filterDateBeforeLimitRes.ok) {
const { log } = await filterDateBeforeLimitRes.json();
assert.isArray(log);
assert.equal(1, log.length);
} else {
throw new Error(`${filterDateBeforeLimitRes.status} ${filterDateBeforeLimitRes.statusText}`);
}
} else {
throw new Error(`${res.status} ${res.statusText}`);
}