Using AI to Practice JavaScript .reduce() | No Tutorials
Today I'm using .reduce() for the first time and learning the accumulator. As always, it’s all vanilla HTML, CSS and JavaScript. No frameworks or libraries. #javascriptprojects #javascript #coding 🌿 Get $2 off your first purchase on Hover → https://hover.com/SjMp9blQ 💧 Get $200 in credit over 60 days on DigitalOcean → https://m.do.co/c/1aa4394b69af 🟣 GITHUB: https://github.com/angelajholden/javascript-daily-practice 🔵 CODE REVIEWS: https://angelajholden.com/consulting 🔵 EMAIL: [email protected] 🟢 SPONSOR: https://github.com/sponsors/angelajholden 🟢 DONATE: https://www.paypal.me/angelajholden 📚 Chapters 00:00 Intro 01:10 Use .reduce() to get total price 11:53 1st .reduce() code review 13:02 Return .reduce() Object + Count Items 15:58 Help Returning Object in .reduce() 22:25 3rd .reduce() Challenge 24:12 Build an array (array accumulator) 28:59 Build an object (object accumulator) 32:06 Build an array of strings w/ .reduce() 36:55 Summary: Number, Array + Object 37:36 .reduce() Code Review 38:55 Use item values to build array 43:57 Final Code Review + Refactor 48:00 Conclusion
Download
0 formatsNo download links available.