We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52e7b91 commit 52495dfCopy full SHA for 52495df
chapter-6/hello/index.html
@@ -0,0 +1,15 @@
1
+<!DOCTYPE html>
2
+<html lang="en" dir="ltr">
3
+
4
+<head>
5
+ <meta charset="utf-8">
6
+ <title></title>
7
+</head>
8
9
+<body>
10
+ <p></p>
11
+ <button>Click me!</button>
12
+ <script src="index.js"></script>
13
+</body>
14
15
+</html>
chapter-6/hello/index.js
@@ -0,0 +1,3 @@
+document.querySelector('button').addEventListener('click', (e) => {
+ document.querySelector('p').innerHTML = `Hello! It is currently ${new Date()}.`
+})
0 commit comments