--- id: a77dbc43c33f39daa4429b4f title: Boo who isRequired: true challengeType: 5 videoUrl: '' localeTitle: بو من --- ## Description
تحقق مما إذا كانت القيمة مصنفة على أنها بدائية منطقية. إرجاع صح أو خطأ. الأجناس البولية هي صحيحة وكاذبة. تذكر استخدام Read-Search-Ask إذا واجهتك مشكلة. حاول إقران البرنامج. اكتب الكود الخاص بك.
## Instructions
## Tests
```yml tests: - text: booWho(true) يجب أن booWho(true) true. testString: 'assert.strictEqual(booWho(true), true, "booWho(true) should return true.");' - text: booWho(false) يجب أن يعود صحيحًا. testString: 'assert.strictEqual(booWho(false), true, "booWho(false) should return true.");' - text: 'booWho([1, 2, 3]) يجب أن تعود خاطئة.' testString: 'assert.strictEqual(booWho([1, 2, 3]), false, "booWho([1, 2, 3]) should return false.");' - text: 'يجب أن تعود booWho([].slice) كاذبة.' testString: 'assert.strictEqual(booWho([].slice), false, "booWho([].slice) should return false.");' - text: '' testString: 'assert.strictEqual(booWho({ "a": 1 }), false, "booWho({ "a": 1 }) should return false.");' - text: يجب أن يقوم booWho(1) بإرجاع false. testString: 'assert.strictEqual(booWho(1), false, "booWho(1) should return false.");' - text: يجب أن تعود booWho(NaN) كاذبة. testString: 'assert.strictEqual(booWho(NaN), false, "booWho(NaN) should return false.");' - text: booWho("a") بإرجاع false. testString: 'assert.strictEqual(booWho("a"), false, "booWho("a") should return false.");' - text: booWho("true") بإرجاع false. testString: 'assert.strictEqual(booWho("true"), false, "booWho("true") should return false.");' - text: booWho("false") بإرجاع false. testString: 'assert.strictEqual(booWho("false"), false, "booWho("false") should return false.");' ```
## Challenge Seed
```js function booWho(bool) { // What is the new fad diet for ghost developers? The Boolean. return bool; } booWho(null); ```
## Solution
```js // solution required ```