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}`);
}