Introduction Hey readers! This blog is all about 'this' keyword in JavaScript. We'll move from basics and cover all the edge cases where 'this' behaves differently and contains different references. So from this post, I will try to explain 'this' i...

Markdown supported · ⌘↵ to post
Now i Know This :)
Maybe an typo error in here:
function print() {
console.log(this);
}
const developer= {
love: "JavaScript"
};
const bindedFn = print.bind(developer); // { love: "JavaScript" }
name.call(developer); // { love: "JavaScript" } // should be bindedFn.call?
name.apply(developer); // { love: "JavaScript" }
bindedFn instead of name?
const author = {
awesome: 'tushar',
print: function() {
console.log(this);
},
};
const reader = { awesome: 'me' };
author.print.call(reader); // { awesome: 'me' }
new author.print() // {}
Well summed btw!!
Ankit Singh
Great and Very Informative.