pulusatapathy

Declarative Functions with ES6

Oct 26th, 2020
762
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sayHello: function() {
  2.     return `Hello! My name is ${this.name}.`;
  3.  
  4.  
  5.  sayHello() {
  6.     return `Hello! My name is ${this.name}.`;
RAW Paste Data