What this means in the following code?
const obj={
name:'jian',
age:18,
seek:function()
{
console.log(obj.name)
}
}
obj.seek()
What this means in the following code?
const obj={
name:'jian',
age:18,
seek:function()
{
console.log(this)
}
}
obj.seek()
Please tell me the difference of this in these two codes.