--- title: JS Modules hide_title: true ---

JS Modules

A JavaScript module serves as a reusable code unit, encapsulating specific functionalities to promote an organized code structure. :::tip What will I learn? 📝 You'll learn how to reuse JavaScript code to format dates within your applications. By the end of this tutorial, you will learn: * 🔧 **Basics:** Learn how to create and configure the JS module * 🔄 **Dynamic Data:** Learn how to pass data between the app and JS module * ♻️ **Reusability:** Discover how to reuse the JS module within applications ::: ## Prerequisites Before you start, make sure you have the following: * A self-hosted instance of Appsmith with a [paid subscription](https://www.appsmith.com/pricing). Refer to the [Appsmith installation guides](/getting-started/setup/installation-guides) for detailed instructions on setting up your Appsmith instance. * If you are new to Appsmith, see [Tutorial - Basics](/getting-started/tutorials/start-building). ## Create JS modules