Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c1f1056

Browse files
initial commit
1 parent 928ade2 commit c1f1056

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

‎Day 6/Dates.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
function getDayName(dateString) {
2+
let dayName;
3+
// Write your code here
4+
let dayNames = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
5+
let date = new Date(dateString)
6+
dayName = date.getDay();
7+
return dayNames[dayName];
8+
}

‎LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 Deepak Raj
3+
Copyright (c) 2017 Deepak Raj
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /