Topic: JS: the Prohibition of change of a variable
There is a class which should be initialized once. How to me to make so at repeated creation of "a class copy" it would not form?
To deliver in the designer if.
And here what to check? const does not go, as he needs to be declared only in a class. To write down created first time object in window? Yes, but after all it can be deleted (window.obj) or to change.
How it is possible to freeze window.obj?