You must first define the correct constructor (the class is not a valid member), like this ...
function MyObject() { this.hello = "World"; }
The agreement is to use a Pascal or UpperCamelCase package for constructors and a Camel package for variables, functions, etc.
The next step is to instantiate using this constructor.
var myObj = new MyObject(); console.log(myObj.hello)
I have not tested it in Visual Studio, but I am sure that if you follow the JS conventions, VS will understand what you are doing.
source share