2. Fun with functions


#1



https://www.codecademy.com/courses/objects-ii/0/2?curriculum_id=506324b3a7dffd00020bf661#


TypeError: user.speak is not a function.

function Person(job, married) {
this.job = job;
this.married = married;
// add a "speak" method to Person!
this.Speak = function (){
console.log ("Hello!");
}
};
var user = new Person("Codecademy Student",false);
user.speak();


Replace this line with your code.


#2

@r.kalai

Have a close look at

Speak


#3

Capitalization is the issue. Change the S to an s and you are on your way!


#4

Now it's work.
Thank you.......!!