tubeshowcase●1,194,391 videos♡ My collection 0
← Learn to Code

Learn to Code07:42

JavaScript CONSTANTS are easy 🚫

Bro Code ↗

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.

Keep exploring Learn to Code