--- id: bd7123c9c441eddfaeb5bdef title: Understanding Boolean Values challengeType: 1 videoUrl: '' localeTitle: 了解布尔值 --- ## Description
另一种数据类型是布尔值Booleans可能只是两个值中的一个: truefalse 。它们基本上是很少的开关,其中true为“on”而false为“off”。这两个国家是相互排斥的。 注意
Boolean值永远不会用引号写。 strings "true""false"不是Boolean ,在JavaScript中没有特殊含义。
## Instructions
修改welcomeToBooleans函数,以便在单击运行按钮时返回true而不是false
## Tests
```yml tests: - text: welcomeToBooleans()函数应该返回一个布尔值(true / false)。 testString: 'assert(typeof welcomeToBooleans() === "boolean", "The welcomeToBooleans() function should return a boolean (true/false) value.");' - text: welcomeToBooleans()应该返回true。 testString: 'assert(welcomeToBooleans() === true, "welcomeToBooleans() should return true.");' ```
## Challenge Seed
```js function welcomeToBooleans() { // Only change code below this line. return false; // Change this line // Only change code above this line. } ```
### After Test
```js console.info('after the test'); ```
## Solution
```js // solution required ```