2024-10-03 11:29:13 -05:00
|
|
|
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()
|
2024-09-17 14:41:00 -05:00
|
|
|
</script></body></html>
|