🔒 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
  • 454
    Views
  • 7
    Participants
Last reply from:
Yuuji-kun

Trending Topics

Online now

Members online
1,048
Guests online
1,337
Total visitors
2,385

Forum statistics

Threads
2,294,292
Posts
29,090,103
Members
1,207,251
Latest member
kraemonie
Back
Top