how to create a function that checks how many years ago that year is form the current year in javascript 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