I am somehow confused about JS object notations. What I know is: There are 2 types of object notations.
var myObj = new Object(); // Object constructor notation
var myObj = {...} // Object literal notation
Object literal is the latest standard and most people use it now a days.
But I have found some people using following notation.
var vm = this;
vm.value = ...;
Can someone explain me about the third type and can tell me, is it literal or constructor.
Thanks.