Skip to content

Instantly share code, notes, and snippets.

@C5H8NNaO4
Created May 28, 2020 16:26
Show Gist options
  • Save C5H8NNaO4/24fa7ee87b8f099f6de3811f97c8d44c to your computer and use it in GitHub Desktop.
Save C5H8NNaO4/24fa7ee87b8f099f6de3811f97c8d44c to your computer and use it in GitHub Desktop.
This
const foo = {
bar: function () {
console.log (this);
}
}
const bar = foo.bar;
foo.bar();
bar();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment