- invoke the add function with 2 arguments, 0 and 1
- invoke the add function within the context of the object named voltron, passing in 2 arguments, 2 and 3 (using call())
- invoke the add function within the context of the object named optimus, passing in 2 arguments, 20 and 30 (using apply())
- bind the function add to a new function named calculate with the context of the object bender (using bind())
invoke the calculate passing in 2 arguments, "drinking " and "beer"
-
Notifications
You must be signed in to change notification settings - Fork 180
devleague/Context-Exercise
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Call, Apply, Bind
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published