Files
cours-420-298-ah/homework2/script.js
T

17 lines
411 B
JavaScript

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;