Skip to content

Instantly share code, notes, and snippets.

@tomatohammado
Created November 29, 2017 14:07
Show Gist options
  • Select an option

  • Save tomatohammado/b00ac6428559f4ee72280be34d11c498 to your computer and use it in GitHub Desktop.

Select an option

Save tomatohammado/b00ac6428559f4ee72280be34d11c498 to your computer and use it in GitHub Desktop.
experimenting with typeof and functions. Not sure if they were 'objects' or 'functions', and if it would be different for declarations vs expressions
function func1 () { console.log('func1') }
-> undefined
var func2 = function () { console.log('func2') }
-> undefined
typeof func1
-> "function"
typeof func2
-> "function"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment