07:31JavaScript CONSTANTS are easy 🚫
From the creator
// const = a variable that can't be changed const PI = 3.14159; let radius; let circumference; // PI = 420.69; document.getElementById("mySubmit").onclick = function(){ radius = document.getElementById("myText").value; radius = Number(radius); circumference = 2 * PI * radius; document.getElementById("myH3").textContent = circumference + "cm"; }
Published 2023-10-18 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.





