Constructor syntax confusion


Are both correct? Is one called a function constructor and the other object constructor?

function Person (name, age) { = name;
this.age = age;


var bob = new Object( );


No @noisynora since you need to instatiate the name and age for bob at bottom. so if you did this it would be correct

var bob = new Object( ); = 'noisynora'