value()?
The `value` accessor indicates the range current value of the number type of a specified `Range` object
Range.prototype.value
The value accessor indicates the range current value of the number type of a specified Range object.
get
The get accessor retrieves the #value property that indicates the range current value of the number type of a specified Range object. It can be set by the setValue() method.
public get value(): number | undefined {
return this.#value;
}set
The set accessor sets the range current value of the number type between the minimum and maximum of a specified Range object.
public set value(value: number | undefined) {
typeof value === 'number'
? this.has(value) && (this.#value = value)
: undefined;
}Type
number|undefined
Example usage
Last updated