I have below code trying to display the context from where checkObj() is invoked. For example, I need to see the output as 'a' since checkObj is invoked as a.checkObj(). Currently, only the type of 'this' is displayed i.e., Object{}
function checkObj(){
console.log(this);
}
var a = {checkObj:checkObj};
a.checkObj();