This commit is contained in:
Karan 2021-11-25 19:51:14 +05:30 committed by GitHub
parent ab19b4535a
commit 19c0843d2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>