xyh1234567
v1.0.0
Published
Show today's day of the week
Downloads
3
Readme
My Awesome Proj
Show today's day of the week
Installation
npm install xyh
Usage
const today = new Date();
const dayOfWeekNumber = today.getDay();
const daysOfWeek = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
const dayOfWeek = daysOfWeek[dayOfWeekNumber];
console.log("Today is", dayOfWeek);