Skip to content
Snippets Groups Projects
Commit 43419d7c authored by Subliminal Guy's avatar Subliminal Guy
Browse files

Refactor Debug Test

parent df4f5474
No related branches found
No related tags found
No related merge requests found
function makeUpperCase(name) {
if (typeof name !== "string") {
throw new Error("Name must be a string");
}
else {
return name.toUpperCase();
}
}
try {
let result = makeUpperCase(1223);
}
catch (error) {
console.log("Da gab es einen Fehler: ", error.message);
}
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", () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment