Is there a better way to create constants in javascript? Isn't there a better way to create my constants that I can use elsewhere in my code ?

export default class AppConstants {
}

Object.defineProperty(AppConstants, 'APP_NAME', { value: 'iVoc'})
/*
*...
*Other constants
*/
Class syntax should not be used for single instance (static) objects (really class should never be used). Use an Object literal and freeze it.

const AppConstants = Object.freeze({
   NAME : "iVoc",
   VERSION : "0.1B",
});