--- seo: description: Build an entry-level JavaScript application for querying the XRP Ledger. top_nav_name: JavaScript top_nav_grouping: Get Started labels: - Development showcase_icon: assets/img/logos/javascript.svg --- {% code-walkthrough filesets=[ { "files": ["/_code-samples/get-started/js/get-acct-info.js"], "downloadAssociatedFiles": ["/_code-samples/get-started/js/package.json", "/_code-samples/get-started/js/get-acct-info.js", "/_code-samples/get-started/js/README.md"], "when": { "environment": "Node" } }, { "files": ["/_code-samples/get-started/js/index.html"], "downloadAssociatedFiles": ["/_code-samples/get-started/js/index.html", "/_code-samples/get-started/js/README.md"], "when": { "environment": "Web" } } ] filters={ "environment": { "label": "Environment", "items": [ { "value": "Node" }, { "value": "Web" }, ] } } %} # Get Started Using JavaScript Library This tutorial guides you through the basics of building an XRP Ledger-connected application in JavaScript using the [`xrpl.js`](https://github.com/XRPLF/xrpl.js/) client library in either Node.js or web browsers. ## Goals In this tutorial, you'll learn: - The basic building blocks of XRP Ledger-based applications. - How to connect to the XRP Ledger using `xrpl.js`. - How to get an account on the [Testnet](/resources/dev-tools/xrp-faucets) using `xrpl.js`. - How to use the `xrpl.js` library to look up information about an account on the XRP Ledger. - How to put these steps together to create a JavaScript app or web-app. ## Prerequisites To complete this tutorial, you should meet the following guidelines: - Have some familiarity with writing code in JavaScript. - Have installed Node.js **version 20** or later in your development environment. - If you want to build a web application, any modern web browser with JavaScript support should work fine. ## Source Code Click **Download** on the top right of the code preview panel to download the source code. ## Steps Follow the steps to create a simple application with `xrpl.js`. ### 1. Install Dependencies {% step id="import-web-tag" when={ "environment": "Web" } %} To load `xrpl.js` into your project, add a `