---
title: "init(newBigIntFrom:in:)"
framework: javascriptcore
role: symbol
role_heading: Initializer
path: "javascriptcore/jsvalue/init(newbigintfrom:in:)-1f0xs"
---

# init(newBigIntFrom:in:)

## Declaration

```swift
init?(newBigIntFrom string: String, in context: JSContext)
```

## Parameters

- `string`: The string representation of the BigInt JavaScript value being created.
- `context`: The JSContext to which the resulting JSValue belongs.

## Return Value

Return Value The JSValue representing a JavaScript value with type BigInt.

## Discussion

Discussion Create a new BigInt value from a numeric string. This is equivalent to calling the BigInt constructor from JavaScript with a string argument.
