Is it bad practice to use both "this" and "return" in one function
<p>Please take a look at this code:</p>

<pre><code>function juggle() {
  var result = 0;
  for (var n=0; n&lt;arguments.length; n++) {
    result += arguments[n];
  }
  this.result = result;
  return result;
};

var ninja1 = {};

juggle.apply(ninja1, [1,2,3,4,5]);

console.log(ninja1.result);

var x = juggle(1,2,3);
console.log(x);
</code></pre>

<p>Is it bad practice what I have done ? In my function I have used both "this" and "return", so that I can test out both "apply"  and assignment .</p>

<p>I am just experimenting and learning so anything can be wrong :) </p>
