---
title: Introduction to Apple JavaScript Coding Guidelines
framework: scriptingautomation
role: article
path: apple-archive/documentation/ScriptingAutomation/Conceptual/JSCodingGuide/Introduction
---

# Introduction to Apple JavaScript Coding Guidelines

Provides an overview of the JavaScript language, its object-oriented features, and coding best practices.

## Who Should Read This Document?

You should read this document if you are a webpage or Dashboard widget developer who wants to learn JavaScript and best practices for Apple’s JavaScript runtime. Also, this document is useful if you’re using an application that offers a scripting environment that uses Apple’s JavaScript Core framework, like Installer or Quartz Composer.

## Organization of This Document

This document contains the following chapters:

- [JavaScript Basics](../JSIntroduction/JSIntroduction.html#//apple_ref/doc/uid/TP40006540-SW3) introduces you to the JavaScript language and its basic structures. - [Object-Oriented JavaScript](../OOJavaScript/OOJavaScript.html#//apple_ref/doc/uid/TP40006539-SW2) discusses implementing an object in JavaScript. - [JavaScript Best Practices](../Advanced/Advanced.html#//apple_ref/doc/uid/TP40006541-SW1) shows you best practices to consider when coding in JavaScript.

## Getting WebKit Builds

Safari is powered by the WebKit framework, an open source project found at [WebKit.org](http://www.webkit.org/) . To try your web-based JavaScript code with the latest JavaScript language features, download a nightly build from [http://nightly.webkit.org/](http://nightly.webkit.org/) .

## See Also

The [Reference Library > Apple Applications > Safari](../../../../../navigation/redirect.html#//apple_ref/doc/uid/TP30000943-TP30000418-TP30001042) provides useful information on WebKit, the technology that provides Apple’s JavaScript runtime. Read *[WebKit DOM Programming Topics](../../../../AppleApplications/Conceptual/SafariJSProgTopics/index.html#//apple_ref/doc/uid/TP40001483)* to learn more about the WebKit DOM interfaces, useful when coding a webpage or Dashboard widget.

Read *[Dashboard Programming Topics](../../../../AppleApplications/Conceptual/Dashboard_ProgTopics/Introduction/Introduction.html#//apple_ref/doc/uid/TP40002837)* for information on the technologies available to you when creating a Dashboard widget. Additional Dashboard documents and sample code can be found in the [Reference Library > Apple Applications > Dashboard](../../../../../navigation/redirect.html#//apple_ref/doc/uid/TP30000943-TP30000418-TP40001366) .

*[Installer Tiger Examples](../../../../../samplecode/InstallerDists2/Introduction/Intro.html#//apple_ref/doc/uid/DTS10003716)* includes information on using the JavaScript runtime included with Apple’s Installer application.

[Next](../JSIntroduction/JSIntroduction.html)

Copyright © 2011 Apple Inc. All Rights Reserved. [Terms of Use](http://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](http://www.apple.com/privacy/) | Updated: 2011-07-10
