Fun with Functions


This is my code. What am I doing wrong? I tried to reset the page and it do not work..

this is error:
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;
this.speak = function () {

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



It looks like ' Hello! ' wasn't logged to the console.

See the difference?


Yes :slight_smile: Thank you for your help!


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