how to get current year in nodejs code example
Example 1: Javascript get current year
var currentYear= new Date().getFullYear();
Example 2: how to get current year in nodejs
const todaysDate = new Date()
const currentYear = todaysDate.getFullYear()
// 2020