In the following example, I used square brackets to recall the values for "hours" and "minutes" in an attempt to add them together. This did not work. Is there a way to add two values together like this?
let movies = [
{
title: "Rosaline",
hours: 1,
mintues: 36,
totalLength: [hours] * 60 + [minutes],
},
{
title: "The Good Nurse"
hours: 2,
mintues: 3,
totalLength: [hours] * 60 + [minutes],
}
]