Fibonacci sequence
var a, b, temp; a = 0; b = 1; temp = b; for (i = 0; i < 20; i++) { console.log(temp); temp = a + b; a = b; b = temp; }