Advertisement
pulusatapathy

Declarative Functions with ES6

Oct 26th, 2020
1,211
0
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}.`;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement