diff --git a/index.js b/index.js index 2da89b2dbc1d62110d01a700885abe63414fd2f9..720dd1472dfde986f52a9efa740e6b1a689151b0 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", () => {