user avatar
user avatar
user avatar
Kuntau
  • Member for 8 years
  • Last seen more than 1 year 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.
3
bronze badges
Top tags
0
Score
1
Posts
100
Posts %
0
Score
1
Posts
100
Posts %
0
Score
1
Posts
100
Posts %
0
Score
1
Posts
100
Posts %
question
1
Jun 14, 2020