Rocket Squirrel Rocket Squirrel
Rocket Squirrel

A global community of coders, developers, and designers

May 2023
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
293031  

Categories


JavaScript

Project Euler with ES6 – Problem 2

My article on Problem 1 is here. This is Project Euler’s Problem 2: 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, … By considering the terms in the Fibonacci sequence whose values do not exceed [...]

jeffliujeffliu

Project Euler with ES6 – Problem 1

wu yi When ECMAScript 2017 was finalized in June I felt that I was not completely comfortable with the language features introduced in ECMAScript 6. ? To fix that I started solving the exercises at Project Euler using as many ES6 features as possible. This is Problem 1: If we list all the natural numbers below 10 that are multiples of 3 [...]

jeffliujeffliu