SHARE
TWEET

Untitled

a guest Aug 25th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.   <meta charset="utf-8">
  5.   <meta name="viewport" content="width=device-width">
  6.   <title>JS Bin</title>
  7. </head>
  8. <body>
  9.  
  10. <script id="jsbin-javascript">
  11. var nome=false;
  12. alert(nome+" "+typeof nome);
  13. var nome=true;
  14. alert(nome+" "+typeof nome);
  15. var nome=null;
  16. alert(nome+" "+typeof nome);
  17. var nome;
  18. alert(nome+" "+typeof nome);
  19. var nome="hidran";
  20. var cognome='arias';
  21. alert(typeof nome);
  22. var numero=5;
  23. var cognome='arias';
  24. alert(typeof numero);
  25. var test=[];
  26. alert(test+" "+typeof test);
  27. test=[1,2,3,4];
  28. alert(test+" "+typeof test);
  29. test={};
  30. alert(test+" "+typeof test);
  31. test={nome:"antonio"};
  32. alert(test+" "+typeof test);
  33. test=function(){
  34.     return "test";
  35. }
  36. alert(test+"=>"+typeof test);
  37. alert(test()+"=>"+typeof test);
  38. </script>
  39.  
  40.  
  41.  
  42. <script id="jsbin-source-javascript" type="text/javascript">var nome=false;
  43. alert(nome+" "+typeof nome);
  44. var nome=true;
  45. alert(nome+" "+typeof nome);
  46. var nome=null;
  47. alert(nome+" "+typeof nome);
  48. var nome;
  49. alert(nome+" "+typeof nome);
  50. var nome="hidran";
  51. var cognome='arias';
  52. alert(typeof nome);
  53. var numero=5;
  54. var cognome='arias';
  55. alert(typeof numero);
  56. var test=[];
  57. alert(test+" "+typeof test);
  58. test=[1,2,3,4];
  59. alert(test+" "+typeof test);
  60. test={};
  61. alert(test+" "+typeof test);
  62. test={nome:"antonio"};
  63. alert(test+" "+typeof test);
  64. test=function(){
  65.     return "test";
  66. }
  67. alert(test+"=>"+typeof test);
  68. alert(test()+"=>"+typeof test);
  69.  
  70. </script></body>
  71. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top