JavaScript Fibonacci Formulae
const fibonacci = (n) => {
const phi = (1 + Math.sqrt(5)) / 2;
return Math.round((Math.pow(phi, n) - Math.pow(1 - phi, n)) / Math.sqrt(5));
}
const sequence = Array.from({ length: 10 }, (value, index) => fibonacci(index))
console.log(sequence)