🔒 Closed FUN CODING PROBLEMS for beginners (Find the Day of the Week)

Status
Not open for further replies.
Javascript

function returnDate(day,month,year) { const newDay = new Date(day,month,year).getDay() return ['monday','tuesday','wednesday','thursday','friday','saturday','sunday'][newDay - 1] } returnDate(31,9,2019)
 
Status
Not open for further replies.

About this Thread

  • 8
    Replies
  • 459
    Views
  • 7
    Participants
Last reply from:
Yuuji-kun

Trending Topics

Online now

Members online
820
Guests online
3,376
Total visitors
4,196

Forum statistics

Threads
2,307,524
Posts
29,179,468
Members
1,192,510
Latest member
Gokiboi21
Back
Top