i want to show div only Sunday Monday,Tuesday,Wednesday,Thursday
and hide it in ,Friday,Saturday
this my code:
<script>
function newep(){
var fecha = new date();
var day = fecha.getDay();
if(day == 4 || day == 5){
console.log("show nothing");
}else if(day == 6 || day == 3){
console.log("New Episodde");
}
}
</script>
<div onload="newep()">here the output</div>