I have an array as such:
let items = [
{
itemName: "Effective Programming Habits",
type: "book",
price: 13.99
},
{
itemName: "Chromebook 2",
type: "computer",
price: 399.99
},
{
itemName: "Programming 101",
type: "book",
price: 15.00
}
]
I need to create a function that loops through the array and finds the most expensive item and returns the itemName. I am brand new to JS and don't know really the best way to tackle this.