I got into js few days ago. I started playing with new stuff functions and events but I got stuck here
var str = ["A", "b", "c", "d", "e"];
function Generate() {
  var text = document.getElementById("text");
  var countStr = 0;
  text.innerHTML = str[countStr];
  countStr += 1;
}<div id="quote">
  <p id="text">I'm a paragraph</p>
</div>
<button id="butt" onclick="Generate()">Generate</button>when I click the button the text changes to str[0] but when I click again it doesn't change; can you tell me why ?
 
     
     
    