Please, am stuck.help me


#1

this.speak = function(){
console.log("Hello!");
}
. error:keep saying 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.


#2

did you call speak method?


#3

could you put the rest of your code as used "this." meaning that you must be already inside something to be referring to the object


#4

Please, i don't get you


#5

Please,i don't get you


#6

you put "this.speak" but unless you are in a constructor for an object how does it know what "this" is?
if you put your whole code i can have a look to see if i can spot anything.
is this within the dog constructor? i can't remember the exercise 100% so not sure if speak is defined in or out of the constructor


#7

thanks.am true with it