Waht is wrong? Fun with Functions


Fun with Function

Fun with Function

it prints "Hello"end
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) {
    this.job = job;
    this.married = married;
    // add a "speak" method to Person!

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


Compare what you printed to what it says you didn't print. It's less than ten characters, you can even afford to compare them one at a time manually.

If an exact sequence of characters is expected, then that exact sequence and nothing else will compare as the same, adding or removing a few things will make it different.

This is similar to how you may consider "Hi" and "Hello" to be the same, they mean the same. They are different character sequences, you have to compare them character by character, not by meaning or any other approximation.


thank you very much you're right


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