constant

fun JsObject.constant(name: String, value: Any?)

Puts a value that a script can read but not change.