j
const hash = new Map()
expensesJsonData.forEach(({ caption, amount }) => {
if (!hash.has(caption)) {
hash.set(caption, +amount)
}
})
const labels = [...hash.keys()]
const data = [...hash.values()]
Size: a a a
j
const hash = new Map()
expensesJsonData.forEach(({ caption, amount }) => {
if (!hash.has(caption)) {
hash.set(caption, +amount)
}
})
const labels = [...hash.keys()]
const data = [...hash.values()]
W
const hash = new Map()
expensesJsonData.forEach(({ caption, amount }) => {
if (!hash.has(caption)) {
hash.set(caption, +amount)
}
})
const labels = [...hash.keys()]
const data = [...hash.values()]
W
C
W
C
B
ВЕ
K
function itemDel() {почему удаляется тот элемент на который произвели клик, а не его родитель?
elem = document.querySelector(".group__list");
elem.addEventListener("click", event => {
let el = event.target;
el.parentNode.remove()
})
}
K
ч
ч
IA
B
ТК
W
ТК
ТК
М