Advertisement
LightProgrammer000

Definições

Jan 24th, 2019
420
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2.  
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4.  
  5.     <head>
  6.         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7.         <title> Testando JavaScript </title>
  8.        
  9.         <style> </style>
  10.        
  11.         <script type="text/javascript">
  12.        
  13.         function funcao()
  14.         {
  15.             var a = 10;
  16.             var b = 4.50;
  17.             var c = "Água";
  18.             var d = true;
  19.             var e;
  20.            
  21.             document.write(" - Variável: " + a + "<br> Tipo: " + typeof(a) + "<br>");
  22.             document.write("<br> <br> - Variável: " + b + "<br> Tipo: " + typeof(b) + "<br>");
  23.             document.write("<br> <br> - Variável: " + c + "<br> Tipo: " + typeof(c) + "<br>");
  24.             document.write("<br> <br> - Variável: " + d + "<br> Tipo: " + typeof(d) + "<br>");
  25.             document.write("<br> <br> - Variável: " + e + "<br> Tipo: " + typeof(e) + "<br>");            
  26.         }
  27.        
  28.         funcao();
  29.        
  30.         </script>
  31.     </head>
  32.  
  33. <body>
  34.  
  35. </body>
  36.  
  37. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement