Array Task - On click on button it will reset array and assign value in array ( clear and start array on same button click )

Job ID: 36097025

Budget: ₹100 – ₹400 INR

This is small assignment like 30 min of task who is expert in Array / Javascript .

I need simple task to be achieve ..just small demo to be require .

In demo you have to add one button and on click on that button array would be start like 1, 2 , 3 , 4 and then on same button click that array need to stop and start array again from 1 , 2 , 3 , 4

Another button also will do it same thing ..

2nd button will do same.. if i will click on 1st button and it will start array 1 , 2 , 3 ,4 and then if i will click on another button then again it will start array 1 , 2 , 3 , 4 and then if i will click on 1st button it will start array from beginning 1 , 2 , 3 , 4

I need just small demo .. thanks
Related categories: PHP JavaScript AJAX