Skip to content

Instantly share code, notes, and snippets.

@nirajkrz
Forked from anonymous/bonfire-boo-who.js
Created December 3, 2015 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nirajkrz/13bf3d1f181d86abc2f1 to your computer and use it in GitHub Desktop.
Save nirajkrz/13bf3d1f181d86abc2f1 to your computer and use it in GitHub Desktop.
http://www.freecodecamp.com/nirajkrz 's solution for Bonfire: Boo who
// Bonfire: Boo who
// Author: @nirajkrz
// Challenge: http://www.freecodecamp.com/challenges/bonfire-boo-who
// Learn to Code at Free Code Camp (www.freecodecamp.com)
function boo(bool) {
// What is the new fad diet for ghost developers? The Boolean.
//Check if a value is classified as a boolean primitive. Return true or false.
return typeof bool === 'boolean';
}
boo(null);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment