Guest User

Untitled

a guest
May 21st, 2018
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  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 Wrap=(function(){
  12. function User(name){
  13. this.name=name;
  14. }
  15. var q=function(){
  16. return "Thank you coming in "+this.name;
  17. };
  18.  
  19. User.prototype.thankForLoggingIn=q;
  20.  
  21. return User;
  22. })();
  23.  
  24.  
  25.  
  26.  
  27.  
  28. console.log ( new Wrap("John").thankForLoggingIn() );
  29.  
  30.  
  31.  
  32.  
  33.  
  34. //new Wrap("John").thankForLoggingIn
  35. </script>
  36.  
  37.  
  38.  
  39. <script id="jsbin-source-javascript" type="text/javascript">var Wrap=(function(){
  40. function User(name){
  41. this.name=name;
  42. }
  43. var q=function(){
  44. return "Thank you coming in "+this.name;
  45. };
  46.  
  47. User.prototype.thankForLoggingIn=q;
  48.  
  49. return User;
  50. })();
  51.  
  52.  
  53.  
  54.  
  55.  
  56. console.log ( new Wrap("John").thankForLoggingIn() );
  57.  
  58.  
  59.  
  60.  
  61.  
  62. //new Wrap("John").thankForLoggingIn</script></body>
  63. </html>
Add Comment
Please, Sign In to add comment