Open shariq-h opened 1 year ago
Each song should have an individual array, with objects with the UNIX time (use to not from) and rank. Also, we need a way to store song data (title, artist, url, etc.)
Example: const songName = [ {date: '1678622400', rank:1} {date: '1679227200', rank:2} {date: '1679832000', rank:7} {date: '1680436800', rank:10} ]
const songName = [ {date: '1678622400', rank:1} {date: '1679227200', rank:2} {date: '1679832000', rank:7} {date: '1680436800', rank:10} ]
Possible solution const songData = [ {date: '1678622400', rank:1} {date: '1679227200', rank:2} {date: '1679832000', rank:7} {date: '1680436800', rank:10} ] Song = [songData, artist, url]
const songData = [ {date: '1678622400', rank:1} {date: '1679227200', rank:2} {date: '1679832000', rank:7} {date: '1680436800', rank:10} ]
Song = [songData, artist, url]
Each song should have an individual array, with objects with the UNIX time (use to not from) and rank. Also, we need a way to store song data (title, artist, url, etc.)
Example:
const songName = [ {date: '1678622400', rank:1} {date: '1679227200', rank:2} {date: '1679832000', rank:7} {date: '1680436800', rank:10} ]