Even and Odd numbers

function IsOdd(x){
    if (x % 2 == 0) {
        console.log(x + " is an even number");
    }  else {
       console.log(x + " is an odd number");
    }
    
    }
    IsOdd(94)
94 is an even number

Time Teller

var today = new Date();
var date = today.getFullYear()+'-'+(today.getMonth()+1)+'-'+today.getDate();
var time = today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds();
var dateTime = date+' '+time;
 
console.log(dateTime)
2022-9-26 21:30:4