Fun with functions


function Person(job, married,speak) {
    this.job = job;
    this.married = married;
    // add a "speak" method to Person!
    this.speak = function(speak){

var user = new Person("Codecademy Student",false);


Your constructor has 3 parameters but you put only 2. Please, post the link to the lesson and describe your problem (or print error message).


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.