Allowing users to access the features of an application is a requirement, and enabling JavaScript does just that. The code snippet provided by the user is necessary to allow web pages to work properly.
For most websites, JavaScript needs to be enabled in order to run their intended functionality correctly. This includes elements like scrolling effects, pop-up menus and interactive games.
However, there are instances where JavaScript isn’t required or would even cause problems if it were left enabled. As a result, users will see options to turn off the script.
Source: https://firstwordpharma.com/story/5943719