Script is not working

.Hi I want to add a file where I can run my code .I do import the three.js library in other script and that script is given link in index.html. But when I run code its not running


image

This screen happen


??

Since you put your code in the constructor of a class, you also have to create an instance of it. It seems you are not doing that so nothing is executed. Try it with the following below your class definition:

const app = new A();
1 Like