diff --git a/app.js b/app.js index 25add5f..872414d 100644 --- a/app.js +++ b/app.js @@ -1,4 +1,11 @@ -let sum2 = (num1, num2) => num1 + num2; +let message = { + name: 'John', + regularFunction: function() { + console.log(this) + console.log('Hello ' + this.name); + }, + arrowFunction: () => console.log(this) +} -let output = sum2(10,5); -console.log(output); \ No newline at end of file +message.regularFunction(); +message.arrowFunction(); // \ No newline at end of file