Tell me how to fix the code so that with each click on btn_refresh a cycle is started and the result is displayed in the console. Those. first click> displays "one", second click> displays "two", third click> displays "three".
At the moment, 3 options are displayed simultaneously.
var btn_refresh=$("#review__content__refresh"), fullReviewArray=[0,1,2]; btn_refresh.click(function(){ for(var i = 0; i < 3; i++) {if(i==0){ console.log("one"); } else if(i==1){ console.log("two"); } else if(i==2){ console.log("three"); } }//ΠΊΠΎΠ½Π΅Ρ for });//ΠΊΠΎΠ½Π΅Ρ click to btn_refresh