title: How to remove an array using input element?
body: <p>I know how to remove element of array by pop() method &amp; splice() method,
  for example </p>
  
  <pre><code>var fruits = ["Banana", "Orange", "Apple", "Mango"];
  fruits.pop();
  document.getElementById("demo").innerHTML = fruits;
  </code></pre>
  
  <p>my question is how do I do these actions through input element in html?
  for example by create a button to toggle hide or show element of array
  so I want to toggle between remove "Mango" for example and add it again?</p>