getNumber Method

Attempt to get a number type variable value.

getNumber(name: string, defaultVal?: number): number

throws if the variable does not exist and a default value is not provided.

Parameter Type Description
name string the variable name to retrieve.
defaultVal number the value to return if the variable does not exist.

Returns - number

Defined in

Last Updated: 13 June, 2024