this javascript ?

This is always a very confusing to understand “this”.There are only 5 rules you need to understand, to master the value of “this” in any function and any object in JavaScript. These rules are all based on how you invoke the this javascript function!

The 5 rules center around JavaScript’s function invocation pattern:
1)Raw function calls
2)Method calls on objects
3)Function calls with “new”
4)Using .call and .apply to invoke a function
5)Function binding with .bind


My Name is Dileep Singh, Noder, Javascript Lover & NoSql Developer, Fitness Freak, Love to travel new places, learning photography & Music Manic ♯ ♩ ♬

Posted in Javascript Tagged with: