Added check for number prompt

This commit is contained in:
NetMan 2024-01-02 19:46:04 +01:00
parent 67504363b2
commit 7f67c9ee95
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
let number = parseInt(prompt('FizzBuzz: Input a total number'));
if (isNaN(number)) {
alert("Not a number, refreshing");
location.reload();
} else {
}