JavaScript obtenga un año actual
var currentYear= new Date().getFullYear();
Grepper
var currentYear= new Date().getFullYear();
new Date().getFullYear(); // This will get you the current year
new Date().getFullYear()
// returns the current year
let currentYear= new Date().getFullYear();
const Year = new Date().getFullYear();
console.log(Year)
var currentYear= new Date().getFullYear();
// should use moment library
https://momentjs.com/