> For the complete documentation index, see [llms.txt](https://osl.mistium.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://osl.mistium.com/legacy-osl-originos/prototype-helpers/.confirm.md).

# string.confirm

## Description

`confirm` displays a confirmation dialog to the user and pauses execution until the user answers **yes** or **no**. It returns the user's response as a boolean.

## Parameters

* **prompt** - text displayed in the confirmation dialog.

## Usage On Strings

```javascript
answer = "Are you sure you want to quit?".confirm()

if answer (
  log "User accepted"  
)
```
