2. Fun with functions



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

Replace this line with your code.



Have a close look at



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


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