Today I'm practicing .map() again with all three callback arguments: item, index and array. As always, it’s all vanilla HTML, CSS and JavaScript. No frameworks or libraries.
#javascript #javascriptprojects #programming
🌿 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
02:00 Prompt for the Challenge
02:36 .map() w/ (itm, i, arr) - Requirements
05:29 Setup .map() Data + Function
06:19 .map() Return New Object
07:07 .map() - Get Index w/ Array Param
12:23 Checking console.log()
16:37 Math.abs() to Get Difference
34:26 ChatGPT JavaScript Code Review
37:44 Conclusion