Return the N-th value of the Fibonacci sequence.
- function fibonacci(n) returns the N-th value of the Fibonacci sequence.
function fibonacci(n) {
// write your solution here
return
}
console.log(`fibonacci value at position 5: ${fibonacci(5)}`)
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||
Return the N-th value of the Fibonacci sequence.
function fibonacci(n) {
// write your solution here
return
}
console.log(`fibonacci value at position 5: ${fibonacci(5)}`)