Skip to content

Instantly share code, notes, and snippets.

@cmd-save
Created August 23, 2017 15:20
Show Gist options
  • Select an option

  • Save cmd-save/e9271373cef5e5ec410d45edc590afec to your computer and use it in GitHub Desktop.

Select an option

Save cmd-save/e9271373cef5e5ec410d45edc590afec to your computer and use it in GitHub Desktop.
example1
var animal = 'dog';
function whatAnimal() {
console.log(animal); // undefined (not dog)
var animal = 'cow';
console.log(animal); // cow
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment