How to select specific property of an object inside an array

后端 未结 0 2031
南笙
南笙 2021-02-07 04:02
  const posts = [
    { 
    title: \'Day 3\', 
    content: \'Hello this is day 3\' 
    }
    ];

console.log(posts[posts.length - 1].title);

I am una

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