How does the navigator.vibrate() array work?
The navigator.vibrate() method accepts an array of integers representing milliseconds. The sequence strictly alternates between vibrating and pausing. The first value (index 0) is a vibration. The second value (index 1) is a pause. The third value (index 2) is a vibration, and so on. For example, [200, 100, 200] vibrates for 200ms, pauses for 100ms, and vibrates again for 200ms.