How to call an object property from an array?

How do I output to the console the index of the expression "Artem Today marks 28 years"?
var items = ['0','1','2','3','4'];
items[0] = {name:'Bob',age:'25'};
items[1] = {name:'Peter',age:'26'};
items[2] = {name:'Sasha',age:'27'};
items[3] = {name:'Artem',age:'28'};
items[4] = {name:'Max',age:'29'};
console.log();
June 27th 19 at 15:07
1 answer
June 27th 19 at 15:09
Solution
console.log('And today' + items[3].name + 'at' + 'turned' + items[3].age 'years')


Or more pleasant option
const userInfo = (user) => `And today is ${user.name}was turned ${user.age} years old`
console.log(userInfo(user[3]))
Thank you! - loren.Daughert commented on June 27th 19 at 15:12
"Today, Wasau turned 22 years" – something something-sound.. - Lorena commented on June 27th 19 at 15:15
: :-o - aiyana.Marv commented on June 27th 19 at 15:18

Find more questions by tags JavaScript