Good night,
I need to translate this sample code from Basic into javascript. Javascript does not support the "Go To" instructions. I would be grateful if you could give me a translation. Many thanks
10 c = 1666.66
20 b = 1.007897747
30 a = 10000
40 n = 6
50 a = a * b
60 a = a -c
70 n = n -1
80 c = c + 0.01
90 if a <= 0 then 120
100 if n = 0 then 30
110 goto 50
120 print c
130 end