Using Property value shorthand in Javascript

后端 未结 0 1003
孤独总比滥情好
孤独总比滥情好 2020-12-15 12:49
let user = {
    name,
    age,
};
console.log(user.name);

I learned that this is how you do property shorthand method in Javascript. so name, shoul

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