You can easily increment or add one to a variable with the `++` operator. Learn more about [Arithmetic operators - Increment (++)](https://developer.mozilla.org/en ...
Whenever we need an auto-increment functionality for JavaScript we can use this code. it's very easy and simple code.