---
sidebar_label: ConsoleMessage.text
---

# ConsoleMessage.text() method

**Signature:**

```typescript
class ConsoleMessage {
  text(): string;
}
```

**Returns:**

string

The text of the console message.