---
title: "init(value:andOwner:)"
framework: javascriptcore
role: symbol
role_heading: Initializer
path: "javascriptcore/jsmanagedvalue/init(value:andowner:)"
---

# init(value:andOwner:)

Creates a managed value and associates it with an owner.

## Declaration

```swift
init!(value: JSValue!, andOwner owner: Any!)
```

## Parameters

- `value`: A JavaScript value.
- `owner`: The Objective-C or Swift object responsible for

## Return Value

Return Value A new managed value.

## Discussion

Discussion Calling this method is equivalent to creating a managed value and then reporting it to the JavaScriptCore virtual machine using the addManagedReference(_:withOwner:) method.

## See Also

### Creating a Managed Value

- [init(value:)](javascriptcore/jsmanagedvalue/init(value:).md)
