Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function message(firstname, lastname, phonenumber){
  2.  
  3.     this.getText = function(){
  4.         return "  Namn: " + firstname + ".  Efternamn: " + lastname + ".  Telefon: " + phonenumber;
  5.     };
  6.  
  7.  
  8.     this.getDate = function (){
  9.         return date;
  10.     }
  11.    
  12.     this.getmID = function(){
  13.         mID = new Date.parse(2011, 1, 12, 0, 0, 0, 0);
  14.         return mID;
  15.     };
  16.    
  17.      this.setmID = function (mID) {
  18.         _mID = mID;
  19.  
  20.     };
  21.    
  22.     this.setDate = function(_date){
  23.         date = _date;
  24.     };
  25.  
  26.  
  27.    
  28.     this.setText = function(text){
  29.         message = text;
  30.     };
  31.  
  32.    
  33.  
  34.  
  35.     message.prototype.toString = function(){
  36.         return this.getText();
  37.     };
  38.    
  39.    
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement