Help me out


Oops, try again. 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.

Replace this line with your code. 
function Person(job, married, speak) {
this.job = job;
this.married = married;

this.speak = function()

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


Remove the speak parameter from your Person object,


tried ....not working out


Is your code above indented like this?

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

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


no i have semicolon in the one above last curly bracket...nd i reset the code and typed the previous one i sent ....and its working now....thank you for refrence


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