title: "push()" method returns the length of array instead of array (JavaScript)
body: <p>I want to make <strong>a new array</strong> by adding an element to <strong>an existing array</strong> by <strong>&quot;push()&quot;</strong> method.</p>
  <p>This is <strong>the existing array</strong>:</p>
  <pre class="lang-js prettyprint-override"><code>let arr = [{label: 1, value: 1}, {label: 2, value: 2}];
  </code></pre>
  <p>This is the element I want to add to <strong>the existing array</strong>:</p>
  <pre class="lang-json prettyprint-override"><code>{label: 3, value: 3}
  </code></pre>
  <p>So this is the full code with <strong>&quot;push()&quot;</strong> method:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>let arr = [{label: 1, value: 1}, {label: 2, value: 2}];
  
  let newArr = arr.push({label: 3, value: 3});
  
  console.log(newArr); // 3</code></pre>
  </div>
  </div>
  </p>
  <p>But <strong>push()</strong> method returns <strong>the length of the new array</strong> which is <strong>&quot;3&quot;</strong> to <strong>&quot;newArr&quot;</strong> variable. However, what I really want is <strong>the actual new array</strong> instead of <strong>its length</strong> for <strong>&quot;newArr&quot;</strong> variable.</p>
  <p>Are there any ways to get <strong>the actual new array</strong> for <strong>&quot;newArr&quot;</strong> variable?</p>