a = 0; b = 1; while({a <= 10000}, { println(a); var c = a; a += b; b = c; });
Source