The language used for block coding would be Javascript, using simple codes to display weather options as this code: onEvent(“checkWeatherBtn”, “click”, function
Need help with this assignment?Get an original answer from a qualified tutor — from $10/page.
Get it written →The language used for block coding would be Javascript, using simple codes to display weather options as this code: onEvent(“checkWeatherBtn”, “click”, function() {
var weatherInput = getText(“weatherInput”); //
switch (weatherInput.toLowerCase()) {
case “rain”:
screenToDisplay = “Shop”;
break;
case “hot”:
screenToDisplay = “Wakeboard”;
break;
case “snow”:
screenToDisplay = “Snowboard”;
break;
default:
screenToDisplay = “Sleep”;
break;
On codes.org
Get a plagiarism-free answer to this question
Send us your instructions and we’ll match you with the best writer in your subject.
- 100% human-written, zero AI
- Turnitin report included
- Confidential — we never share your data
- Free revisions & refunds