Horje
difference between normal function and arrow function Code Example
difference between normal function and arrow function
//* main difference is arrow functions do not have their own this
let user = {
  name: "HEllo world",
  functTest() {
    console.log("----functTest---", this.name) // HEllo world
  },
  arrowTest: () => { 
    console.log("----arrowTest----", this.name) // undefined
  }
}
user.functTest()
user.arrowTest()




Javascript

Related
javascript turn negative number to positibve Code Example javascript turn negative number to positibve Code Example
update password using comparePassword() Method Code Example update password using comparePassword() Method Code Example
discord.js find word inside comment Code Example discord.js find word inside comment Code Example
How to Subtract the numbers in the array, starting from the right in javascript Code Example How to Subtract the numbers in the array, starting from the right in javascript Code Example
how to connect mongoose database with nodejs Code Example how to connect mongoose database with nodejs Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8