Created
September 29, 2017 11:27
-
-
Save afontcu/236f3be671eb2a8d699a5382bf390c00 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
let total = 0 | |
for (let i = 0; i < list.length; i++) { | |
if (list[i].amount > 10) { | |
let convertedTime = list[i].time / 60 | |
total += convertedTime | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment