Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sendWithName(name) {
- return function(message) {
- send(name + ': ' + message)
- }
- }
- let send2 = sendWithName('bob')
- send2('fooooo')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement