50:37JavaScript TEMPERATURE CONVERSION PROGRAM 🌡️
From the creator
#JavaScript #project #programming 00:00:00 HTML 00:04:20 CSS 00:10:43 JavaScript // TEMPERATURE CONVERSION PROGRAM const textBox = document.getElementById("textBox"); const toFahrenheit = document.getElementById("toFahrenheit"); const toCelsius = document.getElementById("toCelsius"); const result = document.getElementById("result"); let temp; function convert(){ if(toFahrenheit.checked){ temp = Number(textBox.value); temp = temp * 9 / 5 + 32; result.textContent = temp.toFixed(1) + "°F"; } else if(toCelsius.checked){ temp = Number(textBox.value); temp = (temp - 32) * (5/9); result.textContent = temp.toFixed(1) + "°C"; } else{ result.textContent = "Select a unit"; } }
Published 2023-11-04 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.
Keep exploring Learn to Code
50:37
15:29Bring all your data from everywhere into OneLake with Microsoft Fabric | DEM562
Microsoft Developer
15:53Easily setup dev environments with WinGet and Microsoft DSC V3 | DEM572
Microsoft Developer
51:05Introducing the Agent Store: Build agents and publish them in the Agent Store for | BRK156
Microsoft Developer
1:02:13
1:00:17Inside Azure AI Foundry Labs: Experimenting with the Future of AI | BRK139
Microsoft Developer
16:18Build Agentic RAG solutions with Azure SQL OpenAI & Data API builder | DEM563
Microsoft Developer