JS global variable doesn’t update
If you want to create global variable intentionally you need to do this. window[‘your_variable_name’]= ‘Some variable value’; then you’ll be able to access it like window.your_variable_name – this way of creating and accessing global variable guarantees that you will work with same variable regardless of what build tools like webpack or from where you access … Read more