Advertisement
Guest User

Untitled

a guest
Feb 21st, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var x;
  2. document.writeln(x);
  3. document.writeln("<br>");
  4. var y = 7;
  5. document.writeln(typeof y);
  6.  
  7. document.writeln("<br>")
  8. var z = "Hello"
  9. document.writeln(typeof z);
  10.  
  11. document.writeln("<br>")
  12. var q = true;
  13. document.writeln(typeof q)
  14.  
  15.  
  16. document.writeln("<br>")
  17. var n = null;
  18. document.writeln(typeof n)
  19.  
  20. document.writeln("<br>")
  21. document.writeln(typeof 3);
  22.  
  23. document.writeln("<br>")
  24. document.writeln(typeof ("Hello" + 3))
  25.  
  26. document.writeln("<br>")
  27. document.writeln(typeof("Hello" + (3 + 2)))
  28.  
  29. document.writeln("<br>")
  30. document.writeln(typeof (y++))
  31.  
  32.  
  33. document.writeln("<br>")
  34. document.writeln(y = 19)
  35.  
  36. document.writeln("<br>")
  37. document.writeln(typeof (y = 19))
  38.  
  39.  
  40. document.writeln("<br>")
  41. document.writeln(typeof (y = 19))
  42.  
  43. document.writeln("<br>")
  44. if(5)
  45.     document.writeln("Is 5")
  46. else
  47.     document.writeln("Isn't 5")
  48.  
  49.  
  50. document.writeln("<br>")
  51. x = 0
  52. if(x = 0)
  53.     document.writeln(x + " Is 0")
  54. else
  55.     document.writeln(x + " Isn't 0")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement