Create and use JavaScript modules in applications with the ServiceNow SDK
Optimize your codebase by defining reusable code blocks with JavaScript modules and the ServiceNow SDK.
Before you begin
Add an application to your local system with the ServiceNow SDK. For more information, see Adding applications with the ServiceNow SDK.
Role required: admin
About this task
To learn about support for using JavaScript modules in scoped applications, including some limitations, see JavaScript modules and third-party libraries. For general information about the syntax used to create JavaScript modules, see the JavaScript modules page on the MDN Web Docs website.
Procedure
What to do next
To use third-party libraries in a JavaScript module, see Use third-party libraries in applications with the ServiceNow SDK.
To build your application and add the modules to the EcmaScript Module [sys_module] table, see Build and install an application with the ServiceNow SDK.