main.js
1
2
3
4
5
6
7
8
9
10
# Python
def my_sum(a, b):
    total = 0
    i = a
    while i <= b:
        total = total + i
        i = i + 1
    return total
 
print( my_sum(10,100) )
Native Browser JavaScript