# max!

## `Range.prototype.max`

The `max` read-only property is the maximum range of generic type variable [`Max`](https://docs.angular-package.dev/range-1/generic-type-variables#range-less-than-min-max-step-greater-than-1) of a specified [`Range`](https://docs.angular-package.dev/range-1/range) object.

{% code title="range.class.ts" %}

```typescript
public readonly max!: Max;
```

{% endcode %}

### Type

#### [<mark style="color:green;">`Max`</mark>](https://docs.angular-package.dev/range-1/generic-type-variables#range-less-than-min-max-step-greater-than-1)

## Example usage

```typescript
// Example usage.
import { Range } from '@angular-package/range';

// Create new instance.
// Returns Range {min: 4, max: 27, value: 5} of Range<4, 27, 1>.
const range = new Range(4, 27, 5);

// Returns 27 of type 27.
range.max;
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.angular-package.dev/range-1/range/properties/max.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
