Get your own Node server
Reading constants:
constants.PI: 3.14159
constants["GOLDEN_RATIO"]: 1.61803
constants["EULER_NUMBER"]: 2.71828

Attempting to modify constants (causes runtime errors in strict mode):
Error: Cannot assign to read only property 'PI' of object '#'
Error: Cannot add property NEW_CONSTANT, object is not extensible

Readonly array example:
First day: Mon

Attempting to modify frozen array (causes runtime errors in strict mode):
Error: Cannot assign to read only property '0' of object '[object Array]'

In TypeScript, readonly would prevent modifications at compile time:
interface ReadonlyStringDictionary {
  readonly [key: string]: string;
}

// These would cause TypeScript compiler errors:
// constants.PI = "3.14";               // Error: Cannot assign to 'PI' because index signature is readonly
// constants["NEW_CONSTANT"] = "1.23";  // Error: Cannot assign to index signature because it is readonly