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