Advertisement
Guest User

Untitled

a guest
Jan 24th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. function sendWithName(name) {
  2. return function(message) {
  3. send(name + ': ' + message)
  4. }
  5. }
  6.  
  7. let send2 = sendWithName('bob')
  8.  
  9. send2('fooooo')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement