From 14b5011a044fae7966f7c9206d90df10b2e01b7d Mon Sep 17 00:00:00 2001 From: Subliminal Guy <subliminal_kid@posteo.de> Date: Sun, 16 Feb 2025 16:18:30 +0100 Subject: [PATCH] Add Deliberate Error --- index.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/index.js b/index.js index 2da89b2..720dd14 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,19 @@ import data from "./helper/data.js"; +// function makeUpperCase(name) { +// if (typeof name !== "string") { +// throw new Error("Name must be a string"); +// } +// else { +// return name.toUpperCase(); +// } +// } + +// console.log(makeUpperCase("helmut")); +// console.log(makeUpperCase(1223)); + + const button = document.getElementsByClassName("main-button")[0]; button.addEventListener("click", () => { -- GitLab