Created
September 24, 2020 12:15
-
-
Save ekrem-aktas/e629921e91efe70019e0ff0be7470b22 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const numbers = [1, 2, 3]; | |
const total = numbers.reduce((sum, num) => sum + num); | |
console.log(total); // 6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment