This commit is contained in:
Sebastian Qvarfordt
2025-02-12 17:42:00 +01:00
commit 3507aa67c9
3 changed files with 25 additions and 0 deletions

7
app.js Normal file
View File

@@ -0,0 +1,7 @@
import { addNumbers } from "./utils.js";
const addBox = document.createElement("input");
addBox.value = addNumbers(1, 3);
document.body.append(addBox);

17
index.html Normal file
View File

@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Hello, world!</title>
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="description" content="" />
<link rel="icon" href="favicon.png">
</head>
<body>
<script type="module" src="app.js"></script>
</body>
</html>

1
utils.js Normal file
View File

@@ -0,0 +1 @@
export const addNumbers = (a, b) => a + b;