I see this on Internet:(source: https://www.w3schools.com/js/js_arrow_function.asp)
1.In regular functions the this keyword represented the object that called the function, which could be the window, the document, a button or whatever.
2.With arrow functions the this keyword always represents the object that defined the arrow function.
But when I run this code:
var x = {
value:1,
get:()=>this//*
}
console.log(x.get())
I see that : arrow function * is defined in obj x. So with clause 2: i think when I run this code the result will be x. But not, the result is Window. I don't know why or what I see is Wrong. Hope guys can help me!!