Skip to main content
Format header according to the other answers
Source Link

JavaScript (ES6), 65 bytes

JavaScript (ES6), 65 bytes

[...Array(1+- -Date().substr(11,4)).keys()].slice(-121).reverse()

You're welcome to improve and shorten it...

Thanks to @Yay295 for the fix. I was 1 year off.

JavaScript (ES6), 65 bytes

[...Array(1+- -Date().substr(11,4)).keys()].slice(-121).reverse()

You're welcome to improve and shorten it...

Thanks to @Yay295 for the fix. I was 1 year off.

JavaScript (ES6), 65 bytes

[...Array(1+- -Date().substr(11,4)).keys()].slice(-121).reverse()

You're welcome to improve and shorten it...

Thanks to @Yay295 for the fix. I was 1 year off.

edited body
Source Link

JavaScript (ES6), 65 bytes

[...Array(new1+- -Date().getFullYearsubstr(11,4)).keys()].slice(-120121).reverse()

You're welcome to improve and shorten it...

Thanks to @Yay295 for the fix. I was 1 year off.

JavaScript (ES6), 65 bytes

[...Array(new Date().getFullYear()).keys()].slice(-120).reverse()

You're welcome to improve and shorten it...

JavaScript (ES6), 65 bytes

[...Array(1+- -Date().substr(11,4)).keys()].slice(-121).reverse()

You're welcome to improve and shorten it...

Thanks to @Yay295 for the fix. I was 1 year off.

Source Link

JavaScript (ES6), 65 bytes

[...Array(new Date().getFullYear()).keys()].slice(-120).reverse()

You're welcome to improve and shorten it...