5. Fibonacci Sequence
Lesson 6 of 31 in Coddy's 30 Days of Logic Building in Javascript course.
Challenge
EasyWrite a function to generate the nth Fibonacci number.
- Input:
<strong>6</strong> - Output:
<strong>8</strong>
Try it yourself
function fibonacci(n) {
// write your code below
}All lessons in 30 Days of Logic Building in Javascript
1Introduction
What is here for you?