In one of my questions, I got the following code as one of the answers. My understanding of the language has come has come a far better now,
just have one small question.
Any function that is called with new operator acts as a constructor, so this will be assigned to the new object and points to it. Also the code inside the constructor will be executed and the new object (perObj) will get properties.