2. Fun with functions


"Oops try again, looks like "Hello" wasn't logged to the console". What's the problem here? Thanks

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);


It mentions "Hello", where would that come from?


Ah silly me. Thank you though!


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