odin-fizzbuzz/index.js

7 lines
163 B
JavaScript

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