Fun with functions objects2


#1


https://www.codecademy.com/courses/objects-ii/0/2?curriculum_id=506324b3a7dffd00020bf661#


It looks like 'Hello!' wasn't logged to the console. Make sure that you properly defined the method and that you didn't change any of the provided code.


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

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


#2

an exclamation mark is missing after Hello


#3

Ow silly me :grinning: . Thanks for your help!!


#4