Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions HTML/html_jsscripts.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<body>

<h1>My First JavaScript</h1>

<button type="button"onclick="document.getElementById('demo').innerHTML = Date()">
Click me to display Date and Time.</button>

<p id="demo"></p>



<h2>JavaScript new Date()</h2>

<p id="demo2"></p>

<script>
const d = new Date("January 01 2023");
document.getElementById("demo2").innerHTML = d;
</script>

</body>
</html>