---
title: string()
slug: ocDO-string
docTags: 
createdAt: 2021-09-14T17:49:56.000Z
---

Given a `value`, returns that value as a `String`.

### Syntax

`string(value)`

- `value` - the value to be converted to a String
- **Return type:** [String](docId\:Ujw2AQAktel5uukLuP73S)&#x20;

### Sample usage

`string(base)` returns the value of `base` as a `String`.

`"Base = " + string(base)` where `base = 100000` returns the value `Base = 100000` as a `String`.

