main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Python
def fizzbuzz( x ):
    for i in range( 1, x+1 ):
        div3 = ""
        if ( i % 3 == 0 ):
            div3 = "fizz"
 
        div5 = ""
        if ( i % 5 == 0 ):
            div5 = "buzz"
 
        n = ""
        if ( div3 == "" and div5 == "" ):
            n  = str(i)
 
        print( div3 + div5 + n )
        
fizzbuzz(100)
Native Browser JavaScript