This JavaScript program computes the Fibonacci number of a given number using dynamic programming. This program has an O(n) time complexity.