What would be the preferred way to create constants in javascript, specifically with ES6?
Currently I have a constants class which has methods that return the string I'm looking for.
class Constants {
constructor() {}
SOMECONSTANT() {
return 'someconstant';
}
}