January 2017
JavaScript function, object and prototypes in brief
There are four ways to invoke functions in JavaScript. Based on lexical environment and type of invocation, JavaScript engine does various activity behind the scenes. In addition, this variable inside any function also changes its behavior based on function structure and its invocation type.