Skip to main content
3 of 4
added 97 characters in body
Shaggy
  • 43.5k
  • 4
  • 36
  • 94

#JavaScript (ES6), 66 54 51 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)].map((x,y)=>Date().split` `[3]-y)

console.log(f());


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

Shaggy
  • 43.5k
  • 4
  • 36
  • 94