Skip to content

Instantly share code, notes, and snippets.

Avatar

Juan Pablo Lomeli Diaz tinkertrain

View GitHub Profile
@tinkertrain
tinkertrain / fibonacci.js
Last active Aug 9, 2018
Even Fibonacci Numbers
View fibonacci.js
/** Class to produce Fibonacci series and actions on them */
class Fibonacci {
/**
* Initialize the arrays to store the Fibonacci series
* complete: All the values that have been calculated across uses
* current: The current list of values
*/
constructor() {
this.series = {
complete: [],