title: Remove the last element in the json
body: <p>I want to remove the last element from the json.I have the object username,Geo,status,month,week2.
  I want to remove week2 in my json</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>const response = [{
      Username: "Denisse Morales",
      Geo: "NSU",
      Status: "Reaches",
      month: "May",
      Week2: 2
  },
  {
      Username: "Chandra Jeevan J",
      Geo: "US East",
      Status: "Reaches",
      month: "May",
      Week2: 1
  },
  {
      Username: "Amy Khalil",
      Geo: "US West",
      Status: "Reaches",
      month: "May",
      Week2: 2
  },
  {
      Username: "Ashuwinth Panneer",
      Geo: "Europe",
      Status: "Reaches",
      month: "June",
      Week2: 1
  },
  {
      Username: "John Joshuva",
      Geo: "Europe",
      Status: "Reaches",
      month: "May",
      Week2: 3
  },
  {
      Username: "Jose Alberto",
      Geo: "Europe",
      Status: "Reaches",
      month: "April",
      Week2: 2
  },
  {
      Username: "Dhivya Muthusamy",
      Geo: "Europe",
      Status: "Reaches",
      month: "June",
      Week2: 10
  },
  {
      Username: "Faizan Mohammed",
      Geo: "Middle East",
      Status: "Reaches",
      month: "May",
      Week2: 3
  },
  {
      Username: "Jaison Clinton",
      Geo: "NSU",
      Status: "Reaches",
      month: "April",
      Week2: 9
  }];
  
  console.log(response.splice(0, -1));</code></pre>
  </div>
  </div>
  </p>
  <p>expected</p>
  <pre><code>[{
      Username: &quot;Denisse Morales&quot;,
      Geo: &quot;NSU&quot;,
      Status: &quot;Reaches&quot;,
      month: &quot;May&quot;
  },
  {
      Username: &quot;Chandra Jeevan J&quot;,
      Geo: &quot;US East&quot;,
      Status: &quot;Reaches&quot;,
      month: &quot;May&quot;
  },
  {
      Username: &quot;Amy Khalil&quot;,
      Geo: &quot;US West&quot;,
      Status: &quot;Reaches&quot;,
      month: &quot;May&quot;
  },
  {
      Username: &quot;Ashuwinth Panneer&quot;,
      Geo: &quot;Europe&quot;,
      Status: &quot;Reaches&quot;,
      month: &quot;June&quot;
  },
  {
      Username: &quot;John Joshuva&quot;,
      Geo: &quot;Europe&quot;,
      Status: &quot;Reaches&quot;,
      month: &quot;May&quot;
  },
  {
      Username: &quot;Jose Alberto&quot;,
      Geo: &quot;Europe&quot;,
      Status: &quot;Reaches&quot;,
      month: &quot;April&quot;
  },
  {
      Username: &quot;Dhivya Muthusamy&quot;,
      Geo: &quot;Europe&quot;,
      Status: &quot;Reaches&quot;,
      month: &quot;June&quot;
  },
  {
      Username: &quot;Faizan Mohammed&quot;,
      Geo: &quot;Middle East&quot;,
      Status: &quot;Reaches&quot;,
      month: &quot;May&quot;
  },
  {
      Username: &quot;Jaison Clinton&quot;,
      Geo: &quot;NSU&quot;,
      Status: &quot;Reaches&quot;,
      month: &quot;April&quot;
  }]
  </code></pre>