| |||
|
<html> <head> <script type="text/javascript">
var Teste;
</script>Teste= 'Ali'; </head> <body> </body> </html> |
| |||
|
<html> <head> <script type="text/javascript">
var Teste;
</script>Teste= '123'; </head> <body> </body> </html> |
| |||
|
<html> <head> <script type="text/javascript">
var Teste;
</script>Teste= 123; </head> <body> </body> </html> |
| Caracter | A | l | i |
| Representação numérica ASCII | 65 | 108 | 105 |
| Caracter | 1 | 2 | 3 |
| Representação numérica ASCII | 49 | 50 | 51 |
| Inteiro | 123 |
| Representação numérica | 123 |
| |||
|
<html> <head> <script type="text/javascript">
var Ano, Teste, X, Y;
</script>Teste= '25'; X = parseInt (Teste); Y = 2007-X; Ano = Y.toString (); alert ('Se alguém está com 25 anos em 2007 é porque nasceu provavelmente em ' + Ano); </head> <body> </body> </html> | |||
| Abrir no navegador |
