xyh1234567

1.0.0 • Public • Published

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); 

Specification

Dependents (0)

Package Sidebar

Install

npm i xyh1234567

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

2.1 kB

Total Files

4

Last publish

Collaborators

  • xyh963560924