Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Jul 11th, 2018 61 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. var d = new Date();
  2. var wd = d.getDay();
  3.  
  4. switch (wd)
  5. {
  6. case 0: result='Today is Sunday';break;
  7. case 1: result='Today is Monday';break;
  8. case 2: result='Today is Tuesday';break;
  9. case 3: result='Today is Wednesday';break;
  10. case 4: result='Today is Thursday';break;
  11. case 5: result='Today is Friday';break;
  12. case 6: result='Today is Saturday';break;
  13. case 7: result='Today is Sunday';break;
  14. }
  15. document.write (result);
  16.  
  17. __________________________________________________
  18.  
  19. var name = 'Ko Kyaw'
  20.  
  21. var title = (name == 'Ko Kyaw') ? 'Ko' : 'Ma';
  22. document.write ('Welcome ' + title + ' ' +name)
  23.  
  24. _________________________________________________
  25.  
  26. window.alert ('Welcome User');
  27. confirm ('Are You Sure?');
  28. prompt ('Enter Your Name','Name Here');
  29.  
  30. _________________________________________________
  31.  
  32. //var goto = confirm ('Do you want to go to Google?');
  33. var name= prompt ('Enter Your Name','');
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