Skip to content

Instantly share code, notes, and snippets.

@edmdc
Last active March 16, 2020 21:02
Show Gist options
  • Save edmdc/019c4d37ecedcc881cf6d1c383e0780d to your computer and use it in GitHub Desktop.
Save edmdc/019c4d37ecedcc881cf6d1c383e0780d to your computer and use it in GitHub Desktop.
  • Boolean are like switches usually set to on/off
  • control flow of possible paths using conditional statements
if (hungry = true);
conlose.log = "eat";
else (hungry = false);
console.log = "work";
  • have two possible values: true and false (all lower-case)
  • true and false are boolean values, and not strings (do not go into " " like strings.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment