1. fibonacci sequence N개 구하기 function fibonacci(number) { if (number < 1) { return; } const fibonacciSequence = [1]; if (number === 1) { return fibonacciSequence; } let currentValue = 1; let previousValue = 0; for (let i = 2; i topMaxValidPosition) { throw new Error(`Can't handle position smaller than 1 or greater than ${topMaxValidPosition}`); } // Calculate √5 to re-use it in further formulas...