JSFiddle - React, Tailwind, and code Playground
by anup1986
HTML
<div id="answer">
</div>
CSS
#answer {
font-size: 50px;
font-weight: bold;
}
JavaScript
var div = document.getElementById('answer');
var today = new Date();
if ([1, 5].some(function(x) {
return x === today.getDay();
})) {
div.innerText = 'JA';
div.style.color = 'green';
} else {
div.innerText = 'NEJ';
div.style.color = 'red';
}