JSFiddle - React, Tailwind, and code Playground

by tylerbrownhenry

SCSS

gfnvbnbvnv

JavaScript

var now = new Date(),
    hours = now.getHours(),
    minutes = now.getMinutes(),
    minutes = (minutes < 10) ? "0" + minutes : minutes;
document.write(hours + ":" + minutes + " ")
if (hours > 11) {
    console.log("PM")
} else {
    document.write("AM")
}