To enable JavaScript in Opera, follow the below-given steps:
Open Opera browser and click on the left. Then click Settings:
Now under Search Settings, search javascript.
On searching, you will get the following options to allow javascript as shown below: