Javascript – check multiple times for condition with if and else if – working with Javascript objects and their properties
We have this Javascript object: const recordCollection = { 2468: { albumTitle: '1999', artist: 'Prince', tracks: ['1999', 'Little Red Corvette'] }, 1245: { artist: 'Robert Palmer', tracks: [] }, 5439: { albumTitle: 'ABBA Gold' } }; To be able to…