SHARE
TWEET

Untitled

a guest Jan 29th, 2020 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let message = {
  2.   hello : 'Hello',
  3.   names : ['Sue', 'Joe'],
  4.   showMessage: function() {
  5.     this.names.forEach(name => {
  6.       console.log(this.hello + ' ' + name);
  7.     });
  8.   }
  9. }
  10. message.showMessage()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top