Code output is coming different

my output is coming different than shown in the lecture of javascript object method