I have the following two codes:

```
angular.module('servicefunction',[]).
factory('checkservice',[function(){ 
    this.x = function(num){
        return num;
    }
 return this;
}]);

```

And the next one creating some object and returning it:

```
angular.module('servicefunction',[]).
factory('checkservice',[function(){ 
   var x = {};
   x.number = function(){
  }
  return x;
}]);

```

What is the best way to return from a `Service` and why? Does it make any difference?