daily pastebin goal
8%
SHARE
TWEET

Untitled

a guest Jan 24th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript">
  2. var today = new Date();
  3. document.write(today  + "<br />");
  4. //document.write(today.length  + "<br />"); - was getting "undefined"
  5. //document.write(today[0]  + "<br />"); - was getting "undefined"
  6.  
  7. document.write(today.getMonth  + "<br />");
  8. document.write(today.getMonth  + "<br />");
  9. document.write(today.getFullYear  + "<br />");
  10.  
  11. </script>
  12.    
  13. Fri Jan 13 14:13:01 EST 2012
  14. function getMonth() { [native code] }
  15. function getDay() { [native code] }
  16. function getFullYear() { [native code] }
  17.    
  18. document.write(today.getMonth()  + "<br />");
  19. document.write(today.getMonth()  + "<br />");
  20. document.write(today.getFullYear()  + "<br />");
  21.    
  22. document.write(today.getMonth()  + "<br />");
  23. document.write(today.getMonth()  + "<br />");
  24. document.write(today.getFullYear()  + "<br />");
  25.    
  26. document.write(today.getMonth()  + "<br />"); // notice the ()'s to invoke the function
  27. document.write(today.getMonth()  + "<br />");
  28. document.write(today.getFullYear()  + "<br />");
  29.    
  30. document.write(today.getMonth()  + "<br />");
  31. document.write(today.getMonth()  + "<br />");
  32. document.write(today.getFullYear()  + "<br />");
  33.    
  34. self.arrayToString = function (arrayval) {
  35.                 if (arrayval == "" || arrayval == null || arrayval == undefined) {
  36.                     return "";
  37.                 }
  38.                 var arrString = "";
  39.                 for (var indexval in arrayval) {
  40.  
  41.  
  42.                     if (indexval == 0) {
  43.                         arrString = (arrayval[indexval]);
  44.                         console.log("aray if statement values"+ arrString);
  45.                     } else {
  46.                        // arrString = arrString.concat("" + (arrayval[indexval]));
  47.                        arrString = arrString.concat("" + (arrayval[indexval]));
  48.                        console.log("aray values"+ arrString);
  49.                     }
  50.  
  51.                 }
  52.                 return arrString;
  53.  
  54.             }
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
 
Top