<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@digitalpersona/core](./core.md) &gt; [Answer](./core.answer.md) &gt; [(constructor)](./core.answer.(constructor).md)

## Answer.(constructor)

Creates an answer to a security question.

<b>Signature:</b>

```typescript
constructor(question: Question | QuestionNumber, text: string);
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  question | <code>Question &#124; QuestionNumber</code> |  |
|  text | <code>string</code> |  |

