Horje
Public properties can be created via Static public fields Code Example
Public properties can be created via Static public fields
// ES2022

const computedFieldKey = Symbol('computedFieldKey');
class StaticPublicFieldClass {
  static identifierFieldKey = 1;
  static 'quoted field key' = 2;
  static [computedFieldKey] = 3;
}
console.log(StaticPublicFieldClass.identifierFieldKey) //output -> 1
console.log(StaticPublicFieldClass['quoted field key']) //output -> 2
console.log(StaticPublicFieldClass[computedFieldKey]) //output -> 3
Source: dev.to




Javascript

Related
mysql timestamp to time/days  ago function Code Example mysql timestamp to time/days ago function Code Example
mongodb hasOwnProperty returns false Code Example mongodb hasOwnProperty returns false Code Example
uncaught type error event listener error Code Example uncaught type error event listener error Code Example
upload image react Code Example upload image react Code Example
express plus es5 Code Example express plus es5 Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10