> For the complete documentation index, see [llms.txt](https://readme.directual.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://readme.directual.com/javascript-sdk/directual-javascript-sdk-basics.md).

# Directual + JavaScript SDK: The Basics

There are two options for using the JS SDK in Directual:

* [Inline JS execution](/template-system/evaluating-as-js-expression.md)
* JS SDK steps ([Actions](/scenarios/editing-scenarios/action-steps/js-sdk-step.md) and [Conditions](/scenarios/editing-scenarios/condition-steps/js-sdk-condition-step.md))

{% hint style="warning" %}
Currently, Directual JS SDK is based on ES5.
{% endhint %}

Common use cases for applying the JS SDK:

* [Dealing with arrays](/template-system/tips-for-working-with-data.md#dealing-with-arrays)
* [Dealing with dates](/template-system/tips-for-working-with-data.md#dealing-with-dates)
* Complex string processing (e.g. converting)

Also, be sure to check out the following:

* [List of internal `$D` methods](/javascript-sdk/internal-usdd-methods.md)

### Additional Resources

* [MDN JavaScript Guide](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide): Get a high-level overview of fundamental JavaScript concepts
* [Codecademy Introduction to JavaScript](https://www.codecademy.com/learn/introduction-to-javascript): Learn JavaScript in this free online course with interactive lessons.
