From 3507aa67c9e135cf12b549173c1a61a895596145 Mon Sep 17 00:00:00 2001 From: Sebastian Qvarfordt Date: Wed, 12 Feb 2025 17:42:00 +0100 Subject: [PATCH] initial --- app.js | 7 +++++++ index.html | 17 +++++++++++++++++ utils.js | 1 + 3 files changed, 25 insertions(+) create mode 100644 app.js create mode 100644 index.html create mode 100644 utils.js diff --git a/app.js b/app.js new file mode 100644 index 0000000..a41c8f5 --- /dev/null +++ b/app.js @@ -0,0 +1,7 @@ +import { addNumbers } from "./utils.js"; + +const addBox = document.createElement("input"); + +addBox.value = addNumbers(1, 3); + +document.body.append(addBox); diff --git a/index.html b/index.html new file mode 100644 index 0000000..1bfdb02 --- /dev/null +++ b/index.html @@ -0,0 +1,17 @@ + + + + + + + Hello, world! + + + + + + + + + + diff --git a/utils.js b/utils.js new file mode 100644 index 0000000..42cf3db --- /dev/null +++ b/utils.js @@ -0,0 +1 @@ +export const addNumbers = (a, b) => a + b;