Комментарии:
Wow such a nice explanation... I really liked your approach and logic... Thanks Nisha
ОтветитьAnother way to do this:
const items = ["a", "b", "c", "a", "b", "b", "c", "d"];
const count = {};
for (const item of items) {
if (count[item]) {
count[item] += 1;
} else {
count[item] = 1;
}
}
console.log(count);
Thanks for do this kind of videos
ОтветитьThank you!!
ОтветитьNice Explanation
ОтветитьThank u for the awesome video. Please continue react tutorial and complete the series.
Ответить