Created
March 25, 2016 05:56
-
-
Save appcoreopc/daa86436b620105e211a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In the getSalary example, we bind an object and provide 1st argument = "jessica" | |
var jessica_partial_calculation = getSalary.bind(jessica, "jessica"); // here we bind and provide the first "argument". | |
// after some processing ..... | |
// now we will provide the next argument // | |
jessica_partial_calculation(100); // output : jessica gets a monthly salary of :2800 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment