Skip to content

Instantly share code, notes, and snippets.

@stanleylhs
Last active February 16, 2016 23:22
Show Gist options
  • Save stanleylhs/d8016ecc31bdf7831755 to your computer and use it in GitHub Desktop.
Save stanleylhs/d8016ecc31bdf7831755 to your computer and use it in GitHub Desktop.

typeOf("Hello") => string

JS Object method

this

event callback stack vs callback queue

lodash, underscore

this in nested function won't work 3 solutions:

  1. var that = this OR var _this = this
  2. function(){}.bind(this); ✔︎
  3. myFunction.call(this);

bind will overide the call!!!!

self calling function function(){}();

document.links[20].style.color

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment