# Constructors

### init.number

`init.number` creates a new integer with a pre-defined value. By default, numeric values are bridged, so you can use ints and doubles interchangeably. However, some [transformers](/supernova-dsm/pulsar-language/transformers.md) require a pure integer value, and using double will result in an error.&#x20;

```
{[ var myNumber @init.number(1) /]}
```

### init.string

`init.string` creates a new string with pre-defined value:

```
{[ var myNewString @init.string("My String") /]}
```

Note that the compiler is smart enough to know what you are asking for and in most cases, you can just omit the method altogether. The following syntax produces the same result:

```
{[ var myNewString "My String" /]}
```

### init.array

`init.array` creates a new, empty array that can be mutated using [transformers](/supernova-dsm/pulsar-language/transformers.md):

```
{[ var myNewArray @new.array() /]}
```

### init.dictionary

`init.dictionary` creates a new, empty object that can be mutated using [transformers](/supernova-dsm/pulsar-language/transformers.md):

```
{[ var myNewDict @new.dict() /]}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://supernova-developers.gitbook.io/supernova-dsm/pulsar-language/functions/data-creation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
