Skip to main content
2 of 4
deleted 300 characters in body
Shaggy
  • 43.5k
  • 4
  • 36
  • 94

#JavaScript ES6, 66 54 Bytes#

My first foray into code golf so I'm open to suggestions for improvements.

The following will output an array of the required years.

f=

_=>Array(121).fill(Date().split` `[3]).map((x,y)=>x-y)

console.log(f());


##History## ###66 bytes### (y=[Date().split [3]],x=121)=>{while(x--)y[x]=(y[0]-x);return y}

Shaggy
  • 43.5k
  • 4
  • 36
  • 94