Skip to content

Instantly share code, notes, and snippets.

Created December 3, 2015 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/f148e131d0ac158b6a68 to your computer and use it in GitHub Desktop.
Save anonymous/f148e131d0ac158b6a68 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