JSFiddle - React, Tailwind, and code Playground

JavaScript

var input = prompt("Enter a number");
var min = parseInt(input);

while (input !== "0") {
    input = parseInt(input);
    if (input < min) {
        min = input;
    }
    input = prompt("Enter a number");
}
alert(min);