-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript copy.js
More file actions
31 lines (22 loc) · 751 Bytes
/
script copy.js
File metadata and controls
31 lines (22 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
setInterval(() => {
console.clear();
const timer = new.date();
console.log(`the time now, in milliseconds is: ${d.getTime()}`);
}, 5000)
const d = new Date("2015-03-25");
const months = [
"January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"
];
const d = new Date("2024-02-26");
let month = months[d.getMonth()]; // "February"
const days = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
const d = new Date("2027-08-02");
let day = days[d.getDay()]; // "Monday"
/* codepen fra lassi
setInterval (() => {
console.clear();
const d = new.date();
console.log (`The time now, in millisecons is: ${d.getTime()}`);
}, 5000)
*/