> For the complete documentation index, see [llms.txt](https://docs.expression-library.bearstudios.co.uk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.expression-library.bearstudios.co.uk/creating-an-expression-library-item/javascript-or-extendscript.md).

# Javascript or Extendscript

Javascript and Extendscript are the two lanaguges expression can be written in. I will always recommend writing expressions in javascript and not extendscript.

### Javascript

Javascript was recently introduced with After Effects CC2019, this now means expressions can handle modern javascript methods allowing them to do much more complex things with alot more ease. This means for the daily user expression are MUCH MUCH quicker, they also have become a lot shorter!\
**Less lines to read means more time to render** *\*this might not be true*

### Extendscript

Extendscipt is the original expression engine used in After Effects. It's now moved into the category of legacy. It has less functionality than modern day javascript and is much much slower.

{% hint style="warning" %}

### Compatibility Issues

Javascript and Extendscript are not exactly compatible with eachother.\
The newer javascript methods do not work with extendscript\
The older extendscript writing methods no longer work in javascript
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.expression-library.bearstudios.co.uk/creating-an-expression-library-item/javascript-or-extendscript.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
