JSFiddle - React, Tailwind, and code Playground

JavaScript

var time = new Date();
alert(time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds());