function fib(){ f1=0; f2=1; t="" while(f1 < 100){ t+=f1+","; tmp=f2 f2=f1+f2 f1=tmp } alert(t) } fib();