Just decided to make a quickie Fibonacci Sequence via jQuery and I was wondering if anybody can think of a faster way to interpret it? I can type pretty much any number in and it returns in a fraction of a second.Can anybody think of a quicker method to calculate a specific Fibonacci number?http://jsfiddle.net/st9sgrcx/1/$(function(){ var counter = 1,        fibo = [0,1],        temp = 0,        whichOne = prompt(Which fibonnaci number do you want?);    function fib(prev, cur){        temp = prev + cur;        fibo.push(temp);        counter = temp;        temp = cur;    }    for(var i=0; i<whichOne; i++){        fib(temp, counter);    }    alert(temp);});<script src=https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js></script>
Fibonacci Sequence - Faster method?
javascript;performance;jquery;fibonacci sequence