Hey everyone, I have an object that looks like this
var dates = {
'2021-09-15': 11,
'2021-09-16': 22,
'2021-09-17': 38,
'2021-09-18': 50,
'2021-09-19': 65
};
I am trying to display the values assigned to each key, so I attempted the following:
for( const date in dates ) {
console.log(dates[date]);
}
Although it does print out the values, sometimes they appear in a random order. Any suggestions on how to address this issue would be greatly appreciated. Thank you!