[JavaScript] Dialog für Werteeingabe

let input = window.prompt("Wert:", "10");
if (input == null)
{
    // Abbruch
}
else
{
    // Ok
    document.write(input + "\n");
};