JS

JavaScript Fundamentals 1 - New date current year

31.

How can you get the current year using JavaScript?

new Year()

getCurrentYear()

Date.now()

new Date().getFullYear()