Chat with us, powered by LiveChat The language used for block coding would be Javascript, using simple codes to display weather options as this code: onEvent(“checkWeatherBtn”, “click”, function - Tutorie

The language used for block coding would be Javascript, using simple codes to display weather options as this code: onEvent(“checkWeatherBtn”, “click”, function

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

Are you struggling with this assignment?

Our team of qualified writers will write an original paper for you. Good grades guaranteed! Complete paper delivered straight to your email.

Place Order Now