Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sayThings(something, somethingElse) {
- console.log(something + ' and ' + somethingElse);
- }
- boundSayThings = sayThings.bind(this, 'meow', 'woof');
- boundSayThings(); // logs "meow and woof"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement