how to declare property in class in javascript code example
Example 1: class declaration in javascript
class NameOfClass {
//class declaration first letter should be capital it's a convention
obj="text";
obj2="some other text";
}
//always call class with "new" key word
console.log(new NameOfClass);
Example 2: how to create class in javascript
class ClassName
{
}