going somewhere.

This commit is contained in:
didier amyot committed 2023-12-01 20:26:23 -05:00
1 parent 3a40288689
commit 4b97a2b147
2 files changed
+24

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>title</title>
<script type="module" src="script.js"></script>
</head>
<body>
<button id="hello-button">
Say Hello
</button>
</body>
</html>
+10
View File
@@ -0,0 +1,10 @@
import {average} from "https://cdn.jsdelivr.net/gh/didiercrunch/cours-420-301-ah@main/modules-examples/stats.js";
function sayHello(){
alert(average([10, 67, 82, 109]));
}
document.getElementById("hello-button")
.addEventListener('click', sayHello);