function Message(text) {
    var today = new Date();
    var todayFull = today.toLocaleString();
    this.createdBy = currentLocation.what3words;
    this.latitude = currentLocation.latitude;
    this.longitude = currentLocation.longitude;
    this.createdOn = todayFull;
    this.expiresOn = Date.now() + 900000; 
    this.text = text;
    this.own = true;
}
//#8 #message #constructor create a constructor function to store messages

8 #message #constructor create a constructor function to store messages
8 #message #constructor create a constructor function to store messages
function Message(text) {
    var today = new Date();
    var todayFull = today.toLocaleString();
    this.createdBy = currentLocation.what3words;
    this.latitude = currentLocation.latitude;
    this.longitude = currentLocation.longitude;
    this.createdOn = todayFull;
    this.expiresOn = Date.now() + 900000; 
    this.text = text;
    this.own = true;
}
function Message ( text ) { var today = new Date ( ) ; var todayFull = today . toLocaleString ( ) ; this . createdBy = currentLocation . what3words ; this . latitude = currentLocation . latitude ; this . longitude = currentLocation . longitude ; this . createdOn = todayFull ; this . expiresOn = Date . now ( ) + 900000 ; this . text = text ; this . own = true ; }
8 #message #constructor create a constructor function to store messages
8 #message #constructor create a constructor function to store messages