07:31Hypotenuse calculator practice program in JavaScript 📐【6 minutes】
From the creator
#Javascript #practice #program let a; let b; let c; document.getElementById("submitButton").onclick = function(){ a = document.getElementById("aTextBox").value; a = Number(a); b = document.getElementById("bTextBox").value; b = Number(b); c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)); document.getElementById("cLabel").innerHTML = "Side C: " + c; }
Published 2022-04-20 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.





