Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <body>
  2.  
  3. <script>
  4. function Student(name){
  5.     this.name=name;
  6.     this.getName=getName;
  7. }
  8. function getName(){
  9.     return this.name;
  10. }
  11. var obj=new Student("Hello");
  12. document.write(obj.getName());
  13. </script>
  14.  
  15. </body>