What's new

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

cetmyeval69

Eternal Poster
Joined
Dec 3, 2020
Posts
342
Reaction
1,312
Points
268
fvg.PNG


COMMENT YOUR SOLUTIONS!!
You do not have permission to view the full content of this post. Log in or register now.
 

Attachments

Last edited:
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)
 
Back
Top