Skip to content

Instantly share code, notes, and snippets.

@rohan-paul
Created October 21, 2016 11:53
Show Gist options
  • Save rohan-paul/cb573154036c1a330f55929389bf8a31 to your computer and use it in GitHub Desktop.
Save rohan-paul/cb573154036c1a330f55929389bf8a31 to your computer and use it in GitHub Desktop.
function myFunction(param) {
console.log(this + " says hello " + param);
}
myFunction.call("Paul", "world")
// Output => Paul says hello world
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment