What's New in JavaScript (ES 2020) - Part II
summary
Refactors an expense-tracking app from nested callbacks and mutation into concise ES2020 patterns, replacing forEach with map/filter, using arrow functions and destructuring to build nested Maps of categories and subcategories, converting a callback HTTP API into a Promise-returning function, coordinating three AJAX calls with Promise.all and then simplifying flow with async/await. Tests run and the refactored output matches the original report while code becomes shorter and easier to reason about.
AI-written summary · about
chapters (6)
- 0:00Introduction to ES2020 features
- 4:58Fat arrow functions
- 13:12Functional programming refactor
- 23:30Async/await and promises
- 47:57Async/await demo
- 51:21Conclusion and Q&A








