console.log returns “undefined” though I created a new property(key) in the object method

前端 未结 0 439
梦如初夏
梦如初夏 2021-01-31 20:05

I have no idea why I get "undefined" instead of the result that should be 32 (2030 - birthYear). Where did I make mistake?

const different = {
  macka:          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题