cleanup
This commit is contained in:
parent
ab19b4535a
commit
19c0843d2d
@ -1,15 +0,0 @@
|
||||
<!DOCTYPE html><html>
|
||||
<head><title>Random String Generator</title></head>
|
||||
<body>
|
||||
<script>
|
||||
let output = "";
|
||||
let letters = "abcdefghijklmnopqrstuvwxyz";
|
||||
let total = prompt('How many letters in the output?');
|
||||
total = (isNaN(total)) ? 10 : total;
|
||||
for (var i = 0; i < total; i++) {
|
||||
output += letters.charAt(Math.floor(Math.random() * letters.length));
|
||||
}
|
||||
console.log(output);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
x
Reference in New Issue
Block a user