Skip to content

Instantly share code, notes, and snippets.

@anonymoustafa
Created December 17, 2021 10:50
Show Gist options
  • Select an option

  • Save anonymoustafa/ab455dadc76daf94a406b8049e600911 to your computer and use it in GitHub Desktop.

Select an option

Save anonymoustafa/ab455dadc76daf94a406b8049e600911 to your computer and use it in GitHub Desktop.
This gist is a nodeJS file that simply prints Fibonacci series to the 300th sentence. The point is, the whole job is organized within a FOR loop.
for (let i = 0, j = 1, temp;
j<300;
temp = i, i = j, j = i + temp)
{console.log(j);};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment