chore(i8n,learn): processed translations (#41364)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
---
|
||||
id: a77dbc43c33f39daa4429b4f
|
||||
title: Boo who
|
||||
title: 基本类型布尔值的检查
|
||||
challengeType: 5
|
||||
forumTopicId: 16000
|
||||
dashedName: boo-who
|
||||
@ -8,67 +8,67 @@ dashedName: boo-who
|
||||
|
||||
# --description--
|
||||
|
||||
Check if a value is classified as a boolean primitive. Return true or false.
|
||||
检查一个值是否是基本类型中的布尔值(boolean)类型。 函数应返回 `true` 或者 `false`。
|
||||
|
||||
Boolean primitives are true and false.
|
||||
基本类型中的布尔值为 `true` 或者 `false`。
|
||||
|
||||
# --hints--
|
||||
|
||||
`booWho(true)` should return true.
|
||||
`booWho(true)` 应返回 `true`。
|
||||
|
||||
```js
|
||||
assert.strictEqual(booWho(true), true);
|
||||
```
|
||||
|
||||
`booWho(false)` should return true.
|
||||
`booWho(false)` 应该返回 `true`。
|
||||
|
||||
```js
|
||||
assert.strictEqual(booWho(false), true);
|
||||
```
|
||||
|
||||
`booWho([1, 2, 3])` should return false.
|
||||
`booWho([1, 2, 3])` 应该返回 `false`。
|
||||
|
||||
```js
|
||||
assert.strictEqual(booWho([1, 2, 3]), false);
|
||||
```
|
||||
|
||||
`booWho([].slice)` should return false.
|
||||
`booWho([].slice)` 应该返回 `false`。
|
||||
|
||||
```js
|
||||
assert.strictEqual(booWho([].slice), false);
|
||||
```
|
||||
|
||||
`booWho({ "a": 1 })` should return false.
|
||||
`booWho({ "a": 1 })` 应该返回 `false`。
|
||||
|
||||
```js
|
||||
assert.strictEqual(booWho({ a: 1 }), false);
|
||||
```
|
||||
|
||||
`booWho(1)` should return false.
|
||||
`booWho(1)` 应该返回 `false`。
|
||||
|
||||
```js
|
||||
assert.strictEqual(booWho(1), false);
|
||||
```
|
||||
|
||||
`booWho(NaN)` should return false.
|
||||
`booWho(NaN)` 应该返回 `false`。
|
||||
|
||||
```js
|
||||
assert.strictEqual(booWho(NaN), false);
|
||||
```
|
||||
|
||||
`booWho("a")` should return false.
|
||||
`booWho("a")` 应该返回 `false`。
|
||||
|
||||
```js
|
||||
assert.strictEqual(booWho('a'), false);
|
||||
```
|
||||
|
||||
`booWho("true")` should return false.
|
||||
`booWho("true")` 应该返回 `false`。
|
||||
|
||||
```js
|
||||
assert.strictEqual(booWho('true'), false);
|
||||
```
|
||||
|
||||
`booWho("false")` should return false.
|
||||
`booWho("false")` 应该返回 `false`。
|
||||
|
||||
```js
|
||||
assert.strictEqual(booWho('false'), false);
|
||||
|
@ -49,7 +49,9 @@ if(typeof myName !== "undefined"){(function(v){return v;})(myName);}
|
||||
```
|
||||
|
||||
## --seed-contents--
|
||||
|
||||
```js
|
||||
|
||||
```
|
||||
|
||||
# --solutions--
|
||||
|
@ -36,7 +36,9 @@ if(typeof a !== 'undefined') {(function(a){return "a = " + a;})(a);} else { (fun
|
||||
```
|
||||
|
||||
## --seed-contents--
|
||||
|
||||
```js
|
||||
|
||||
```
|
||||
|
||||
# --solutions--
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
id: bd7993c9c69feddfaeb7bdef
|
||||
title: Multiply Two Decimals with JavaScript
|
||||
title: 两个小数相乘
|
||||
challengeType: 1
|
||||
videoUrl: 'https://scrimba.com/c/ce2GeHq'
|
||||
forumTopicId: 301173
|
||||
@ -9,23 +9,23 @@ dashedName: multiply-two-decimals-with-javascript
|
||||
|
||||
# --description--
|
||||
|
||||
In JavaScript, you can also perform calculations with decimal numbers, just like whole numbers.
|
||||
在 JavaScript 中,你也可以用小数进行计算,就像整数一样。
|
||||
|
||||
Let's multiply two decimals together to get their product.
|
||||
把两个小数相乘,并得到它们乘积。
|
||||
|
||||
# --instructions--
|
||||
|
||||
Change the `0.0` so that product will equal `5.0`.
|
||||
改变 `0.0` 的数值让变量 product 的值等于 `5.0`。
|
||||
|
||||
# --hints--
|
||||
|
||||
The variable `product` should equal `5.0`.
|
||||
变量 `product` 应该等于 `5.0`。
|
||||
|
||||
```js
|
||||
assert(product === 5.0);
|
||||
```
|
||||
|
||||
You should use the `*` operator
|
||||
要使用`*`运算符。
|
||||
|
||||
```js
|
||||
assert(/\*/.test(code));
|
||||
|
Reference in New Issue
Block a user