---
title: stringRepresentation()
framework: webkit
role: symbol
role_heading: Instance Method
path: webkit/webscriptobject/stringrepresentation()
---

# stringRepresentation()

Returns a string representation of the receiver.

## Declaration

```swift
func stringRepresentation() -> String!
```

## Return Value

Return Value The string representation of the receiver.

## Discussion

Discussion The coercion of nonstring objects is dependent on the scripting environment.
