Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="pt">
- <head>
- <meta charset="UTF-8">
- <title>Tabelas de Símbolos</title>
- </head>
- <body>
- <!--<script language="JavaScript" type="text/javascript">-->
- <script>
- const CODIGO_INICIAL=0;
- const CODIGO_FINAL=255;
- var codigoHtml = "";
- for //fazer um passeio do código inicial ao último
- (
- var codigo=CODIGO_INICIAL; //inicialização
- codigo<=CODIGO_FINAL; //condição de continuidade
- codigo=codigo+1
- )
- {
- //o que fazer durante o passeio?
- var linha = "symbol code "+codigo+" : &#"+codigo+";<br>";
- codigoHtml = codigoHtml + linha;
- }//for
- document.write(codigoHtml);
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement