current work

This commit is contained in:
2024-09-17 14:41:00 -05:00
commit fa7ac2949b
13 changed files with 183 additions and 0 deletions

11
5/functiondate.html Normal file
View 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>