JSFiddle - React, Tailwind, and code Playground

by Kyle Pennell

JavaScript

var temp_guess;
var temp_boiling = 212;
var dataOK;           
do {
    price = +prompt("What's temp does water boil at in fahrenheit?");
    if (temp_guess == temp_boiling) {
        alert("nice work!");
        dataOK = true;
    } else {
        alert("Sorry, Nope");
        dataOK = false;
    }
} while (dataOK === false);  // note: semicolon needed here

alert("The actual temp is" + temp_boiling);