added correction of homework 2

This commit is contained in:
didier amyot committed 2023-10-26 08:23:09 -04:00
1 parent b61954a456
commit 735389d37c
4 files changed
+206

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
function exo1b() {
let userInput = document.getElementById("input-1").value;
document.getElementById("result-box-1").innerText = userInput;
}
document.getElementById("button-1").onclick = exo1b;
function exo1c() {
let userInput = document.getElementById("input-2").value;
document.getElementById("result-box-3").innerText = getExo1c;
}
document.getElementById("button-2").onclick = exo1b;