Fun with Functions


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.

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

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


The code passes fine, for me. There are no apparent errors. Perhaps try a refresh and submit again.


yeah it was a malfunction from the website, thanks anyways


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