<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.5.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "JavaScriptCore",
  "identifier" : "/documentation/JavaScriptCore/JSStaticValue",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "JavaScriptCore"
    ],
    "preciseIdentifier" : "c:@SA@JSStaticValue"
  },
  "title" : "JSStaticValue"
}
-->

# JSStaticValue

A statically declared value property.

```
struct JSStaticValue
```

## Topics

### Creating a Static Value

[`init()`](/documentation/JavaScriptCore/JSStaticValue/init())

Creates a static value.

[`init(name:getProperty:setProperty:attributes:)`](/documentation/JavaScriptCore/JSStaticValue/init(name:getProperty:setProperty:attributes:))

Creates a static value with the specified values.

### Accessing Static Value Information

[`name`](/documentation/JavaScriptCore/JSStaticValue/name)

A null-terminated UTF-8 string that contains the property’s name.

[`getProperty`](/documentation/JavaScriptCore/JSStaticValue/getProperty)

A callback to invoke when getting the property’s value.

[`setProperty`](/documentation/JavaScriptCore/JSStaticValue/setProperty)

A callback to invoke when setting the property’s value.

[`attributes`](/documentation/JavaScriptCore/JSStaticValue/attributes)

A set of property attributes to give to the property.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)