Last active
May 17, 2020 11:39
-
-
Save TungVdMiichi/7fd4e588c1685b9ecd466468c77bc2bd 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
var totalLikes = 0 | |
for item in items { | |
totalLikes += item.numberOfLike | |
} | |
// result: 60 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment