JavaScript, Code Quality.
we can do to make the code maintainable No or minimum global state Reduce the number of global state we have in our code base. it will avoid someone randomly update the state. let see the below code the same function which we saw before now refactored to avoid global variable dependency. we are