Create a new repository, initialize NPM, and install the XRPL.js packageCreate an app.js file and paste the provided codeThe code connects to XRPL client, requests ledger information, and logs the ledger indexRun the code to interact with XRPL and display the last ledger index