<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UniformTypeIdentifiers",
  "identifier" : "/documentation/UniformTypeIdentifiers/UTType-swift.struct/javaScript",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Uniform Type Identifiers",
      "UniformTypeIdentifiers"
    ],
    "preciseIdentifier" : "s:22UniformTypeIdentifiers6UTTypeV10javaScriptACvpZ"
  },
  "title" : "javaScript"
}
-->

# javaScript

A type that represents JavaScript source code.

```
static var javaScript: UTType { get }
```

## Discussion

The identifier for this type is `com.netscape.javascript-source`.

This type conforms to [`UTTypeSourceCode`](/documentation/UniformTypeIdentifiers/UTTypeSourceCode) and [`UTTypeExecutable`](/documentation/UniformTypeIdentifiers/UTTypeExecutable).

---

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)