JSFiddle - React, Tailwind, and code Playground

by grant

HTML

<div id="foo">

</div>

JavaScript

var x = document.getElementById('foo');
var y = new Date().getDay();
var z = new Date().getMonth();

//var z = 5
console.log(z, y)
if(z == 5 ){
x.innerHTML="Its The Weekend in June!";}
else if(y==5 || y==6 || y==0){
x.innerHTML="Its the weekend";}
else if(z == 5 &&  y==0){
x.innerHTML="Its the sunday in june";}
else{
x.innerHTML="Have a Nice Day";}