Member-only story

Project Euler Problem 2 Solved with Javascript

Jared Nutt
codeburst
Published in
4 min readJan 27, 2020

Getting all the even Fibonacci numbers

Welcome to Round Two of Project Euler! This time we’re heading into the land of state management and that guy you’ve probably heard about: Fibonacci! I’m excited, are you excited?

Check out the solution for Problem 1 here:

Video Version

If you like to watch rather than read, check out the video that accompanies this article. If not, keep reading!

Problem 2: Even Fibonacci Numbers

Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:

1, 2, 3, 5, 8, 13, 21, 34, 55, 89, …

Problem Statement

--

--

Published in codeburst

Bursts of code to power through your day. Web Development articles, tutorials, and news.

Written by Jared Nutt

Freelance web developer living in Los Angeles. I write articles I wish I had when I was learning — mostly about Javascript and web development.

Responses (1)

What are your thoughts?