Uploaded August 2023 | Updated November 2026, 1 day ago
My ways to sum an array, you can use a for loop but you need a variable for that.
If you want a const, you can use array.reduce!
More on the docs: developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce
_______________________________
Hit like and subscribe for more content! :D
Join the Discord community! Here's the invite: discord.gg/bqwyEa6We6
You can also follow me on the other platforms:
Twitter: twitter.com/Balastrong
dev.to: dev.to/balastrong
Home: https://leonardomontini.dev/
TikTok: tiktok.com/@balastrong
GitHub: github.com/Balastrong
Instagram: instagram.com/devbalastrong
_______________________________
Sound effects from zapsplat.com
My ways to sum an array, you can use a for loop but you need a variable for that.
If you want a const, you can use array.reduce!
More on the docs: developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce
_______________________________
Hit like and subscribe for more content! :D
Join the Discord community! Here's the invite: discord.gg/bqwyEa6We6
You can also follow me on the other platforms:
Twitter: twitter.com/Balastrong
dev.to: dev.to/balastrong
Home: https://leonardomontini.dev/
TikTok: tiktok.com/@balastrong
GitHub: github.com/Balastrong
Instagram: instagram.com/devbalastrong
_______________________________
Sound effects from zapsplat.com




![Generate gitignore in 2 seconds
Need a .gitignore for your new project?
Open the terminal and run: npx gitignore [type]
There are 131 supported types, including node, rust, and python!
Hit like and subscribe for more content! :D
Join the Discord community! Heres the invite: https://discord.gg/bqwyEa6We6
You can also follow me on the other platforms:
Twitter: https://twitter.com/Balastrong
dev.to: https://dev.to/balastrong
TikTok: https://www.tiktok.com/@balastrong
GitHub: https://github.com/Balastrong
Instagram: https://www.instagram.com/devbalastrong/ Generate gitignore in 2 seconds](https://i.ytimg.com/vi/bet-UkNrjdY/mqdefault.jpg)





