It is estimated that many netizens believe that as the most secure and privacy-protected browser in history, the Tor browser should disable javascript by default, but this is not the case. The Security Level of the newly installed Tor browser is Standard, and the common functions of the browser are enabled by default, including javascript.
Through the description of the Tor Browser Security Level, we can see: select Standard, all dark web sites enable javascript; select Safer, HTTPS sites enable javascript; select Safest, all dark sites click to disable javascript.
We checked the official explanation of torproject and found that the official said:
Why does Tor Browser ship with JavaScript enabled?
We configure NoScript to allow JavaScript by default in Tor Browser because many websites will not work with JavaScript disabled. Most users would give up on Tor entirely if we disabled JavaScript by default because it would cause so many problems for them. Ultimately, we want to make Tor Browser as secure as possible while also making it usable for the majority of people, so for now, that means leaving JavaScript enabled by default.
For users who want to have JavaScript disabled on all HTTP sites by default, we recommend changing your Tor Browser's "Security Level" option. This can be done by navigating the Security icon (the small gray shield at the top-right of the screen), then clicking "Advanced Security Settings…". The "Standard" level allows JavaScript, but the "Safer" and "Safest" levels both block JavaScript on HTTP sites.
However, the function of website is one aspect. From a security point of view, it is recommended to disable Javascript in the Tor browser and not allow any client-side dynamic JS scripts. The method to disable is to set the Security Level to Safest.