Kuntau's user avatar
Kuntau's user avatar
Kuntau's user avatar
Kuntau
  • Member for 10 years, 11 months
  • Last seen more than a week ago
About

MyObject = checkCondition: (num) -> return true if num is 5

  getSum: (num) ->
    total = 0
    total += i for i in [1..num] when @checkCondition i
    total
Badges
This user doesn’t have any gold badges yet.
This user doesn’t have any silver badges yet.
4
bronze badges
Top tags
0
Score
1
Posts
100
Posts %
0
Score
1
Posts
100
Posts %
Top posts
question
2
May 30, 2020