function fib(n){let a=0,b=1;while(n-->0){const t=a+b;a=b;b=t;}return a;}console.log([...Array(8).keys()].map(fib).join(","));