Object II - fun with function...why it throws error


#1

this.speak = function() {

this is highlight in blue not red thats why it says error, pnj attached
https://www.codecademy.com/courses/objects-ii/0/2?curriculum_id=506324b3a7dffd00020bf661#
function Person(job, married) {
this.job = job;
this.married = married;
this.speak = function(){
console.log("hello!");
};
}
var user = new Person("Codecademy Student", false);
user.speak();


#2

Hello should have an uppercase first letter


#3

thanks...this JS is very case sensitive....


#4

i know, that is why i usually copied string from the instructions instead of typing them


#5

will do the same, thanks...


#6