JavaScript program to show current day
Below program shows you how to print current day.
We can get current day using new Date().getDate() in Javascript.
function getDate() {
var d = new Date().getDate();
console.log(d);
}
getDate();
Output:
17
Try it online here https://onecompiler.com/javascript/3x5qas9sc