Tags : JavaScript Intro

Fibonacci

Here is a the Fibonacci series:

0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765, 10946, 17711, 28657, 46368, 75025, 121393, 196418, 317811, ...

Read up on how to calculate the series here

The user will input a position and the webpage has to return the number of the sequence. For example, position 6 = 5, 9 = 21, 20 = 4181, ...

Also, indicate if the number in the sequence is odd or even.

Add the results to a table or ul. If the number is odd make it "red" and "blue" if it is even.