get previous year in javascript

Solutions on MaxInterview for get previous year in javascript by the best coders in the world