# JavaScriptRunScriptAnnotation Constructors

- Package: [Aspire.Hosting.JavaScript](/reference/api/csharp/aspire.hosting.javascript.md)
- Type: [JavaScriptRunScriptAnnotation](/reference/api/csharp/aspire.hosting.javascript/javascriptrunscriptannotation.md)
- Kind: `Constructors`
- Members: `1`

Represents the annotation for the script used during run mode in a JavaScript resource.

## JavaScriptRunScriptAnnotation(string, string[]?)

- Name: `Constructor(string, string[]?)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.JavaScript/JavaScriptRunScriptAnnotation.cs#L13-L23)

Represents the annotation for the script used during run mode in a JavaScript resource.

```csharp
public sealed class JavaScriptRunScriptAnnotation
{
    public JavaScriptRunScriptAnnotation(
        string scriptName,
        string[]? args)
    {
        // ...
    }
}
```

## Parameters

- `scriptName` (`string`)
  The name of the JavaScript package manager's run script.
- `args` (`string[]?`)
  The command line arguments for the JavaScript package manager's run script.
