Content
Fullstack developer requirements: let releaseDates javascript: new Date( ‘December 4, 1995"), angular: new Date( ‘September 14, 2016’), python: new Date( ‘February 20, 1991’), sql: new Date(‘1979’), function getYearsSinceRelease( releaseDate) let today new Date() let timeDiff today. getTime() – releaseDate.getTime() let yearsDiff Math. floor(timeDiff (1000 60 60 24 365)) return yearsDiff for (let key in releaseDates) console. log( – getYearsSinceRelease(releaseDates key) 1 years of experience with key Output: – 29 years of experience with javascript – 8 years of experience with angular 33 years of experience with python 46 years of experience with sql