current work
This commit is contained in:
11
5/functiondate.html
Normal file
11
5/functiondate.html
Normal file
@ -0,0 +1,11 @@
|
||||
A function that prints the current date and time. Hint: you can
|
||||
get the current date and time with new Date().
|
||||
<html><body><script>
|
||||
function datetime (){let t = Date();console.log(t)}
|
||||
date = function () {let t = Date();console.log(t)}
|
||||
d = () => {let t = Date();console.log(t)}
|
||||
|
||||
datetime()
|
||||
date()
|
||||
d()
|
||||
</script></body></html>
|
Reference in New Issue
Block a user