Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript class access static property

class ClassWithStaticProperty {
	static staticProperty = 'someValue';
}

console.log(ClassWithStaticProperty.staticProperty) //'someValue'
 
PREVIOUS NEXT
Tagged: #javascript #class #access #static #property
ADD COMMENT
Topic
Name
4+7 =