An object property can contain an array. After reading that property, array indexes and .length work as usual.
const playlist = { title: "Focus", songs: ["One", "Two"] };
console.log(playlist.songs[1]); // outputs "Two"Predict the output
An article stores its tags inside an object. Predict its last-tag and tag-count displays.
const article = {
title: "Loops",
tags: ["js", "arrays", "practice"]
};
console.log("Last:", article.tags[article.tags.length - 1]);
console.log("Count:", article.tags.length);