There is some javascript code below. Please, can you tell me how to access and change the variable data? (I mean add some numbers to array)
const data = {
labels: labels,
datasets: [{
label: 'myDataLabel',
backgroundColor: 'green',
borderColor: 'green',
data: [0, 6, 4],
}]
};
I tried console.log(data.datasets.data)
, but console show that it's undefined