What is sandbox and how to use it?

I need to run some js files using the sandbox. So, I was hoping you could reply to me with whatever you know about the sandbox.

sandbox provides your own node (and indexer) for testing.

Except when you are using the command line goal, you usually don’t want to run anything inside sandbox. You use the sandbox API endpoints in your JS program.
Essentially, sandbox is one of the option for these steps: 1. Workspace Setup - Algorand Developer Portal

Thanks a lot. I already have purestake API which is mentioned as the third party.