Please help me with constructor


#1

var me=function(){
this.name='marcos';
this.age=26;
};
var c=new me();
c.name="vicky";


#2

In your case, I believe you want to create an Object and not a Function. You will need to change your code to either the object literal notation or the constructor method.

If you complete the entire section in the CodeAcademy section called Arrays and Objects in JS, you should be able to figure out any other object issues you encounter. If you want to read more on objects I suggest you take a look here.

and last, if you have any other questions, ask away! :slightly_smiling: