JSFiddle - React, Tailwind, and code Playground

JavaScript

var currentTime = new Date();
var year = currentTime.getFullYear();
console.log(year)