This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fib_sequence(n) { | |
let arr = [1,1]; | |
if (n <= 0) { | |
return ('Enter a value that is larger than 0.\nTry again...'); | |
} | |
if (n === 1) { | |
return ('The first value of the Fibonacci sequence is 1.'); | |
} |