--- id: a77dbc43c33f39daa4429b4f title: Boo who isRequired: true challengeType: 5 videoUrl: '' localeTitle: Boo quien --- ## Description
Compruebe si un valor está clasificado como un primitivo booleano. Devuelve verdadero o falso. Los primitivos booleanos son verdaderos y falsos. Recuerda usar Read-Search-Ask si te atascas. Trate de emparejar el programa. Escribe tu propio código.
## Instructions
## Tests
```yml tests: - text: booWho(true) debe devolver true. testString: 'assert.strictEqual(booWho(true), true, "booWho(true) should return true.");' - text: booWho(false) debe devolver verdadero. testString: 'assert.strictEqual(booWho(false), true, "booWho(false) should return true.");' - text: 'booWho([1, 2, 3]) debe devolver falso.' testString: 'assert.strictEqual(booWho([1, 2, 3]), false, "booWho([1, 2, 3]) should return false.");' - text: 'booWho([].slice) debe devolver falso.' testString: 'assert.strictEqual(booWho([].slice), false, "booWho([].slice) should return false.");' - text: 'booWho({ "a": 1 }) debe devolver falso.' testString: 'assert.strictEqual(booWho({ "a": 1 }), false, "booWho({ "a": 1 }) should return false.");' - text: booWho(1) debe devolver falso. testString: 'assert.strictEqual(booWho(1), false, "booWho(1) should return false.");' - text: booWho(NaN) debe devolver falso. testString: 'assert.strictEqual(booWho(NaN), false, "booWho(NaN) should return false.");' - text: booWho("a") debe devolver falso. testString: 'assert.strictEqual(booWho("a"), false, "booWho("a") should return false.");' - text: booWho("true") debería devolver falso. testString: 'assert.strictEqual(booWho("true"), false, "booWho("true") should return false.");' - text: booWho("false") debe devolver 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 ```