Advertisement
fmtmalvin

hekerspeek

Sep 20th, 2021
1,075
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.71 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <meta charset="utf-8">
  5.     <title>Hacker Speak</title>
  6. </head>
  7. <body>
  8.     <script type="text/javascript">
  9.         var input = "Javascript is awesome";
  10.         var output = "";// j4v4scr1pt 1s 4w3s0m3
  11.         for (i = 0; i < input.length; i++){
  12.            if (input[i] == "a"){
  13.                output += "4";
  14.            } else if (input[i] == "i"){
  15.                output += "1";
  16.            } else if (input[i] == "e"){
  17.                output += "3";
  18.            } else if (input[i] == "o"){
  19.                output += "0";
  20.            } else {
  21.                output += input[i]
  22.            };
  23.        };
  24.        console.log(output);
  25.    </script>
  26. </body>
  27. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement