title: Need an array where with first element of new array=sum of all elements except the first element-Javascript
body: <p>I have an array arr[0,1,2,3,..10] in Java script.I need to make a new array with first element of new array=sum of all elements except the first element of the previous array,and goes on.</p>
  
  <p><strong>Description:</strong> I have </p>
  
  <pre><code>  Array=new Arr[0,1,2,3,..10].
  </code></pre>
  
  <p>I need an </p>
  
  <pre><code>  Array=new new Array[first element,second element..]
  </code></pre>
  
  <p>where </p>
  
  <pre><code> first element=(1+2+..10)-0 ,
      second element=(0+2+3+..10)-1,
      third element=(0+1+3+..10)-2,
  
  .. goes on till last element.
  </code></pre>