The JavaScript VM in Remix
The JavaScript VM is a simulated Blockchain Environment that only exists in your browser. It also only exists as long as you keep the browser-tab open. Close it or reload it, you start from scratch.
On the positive side: itās super fast! No waiting for Transactions to be mined. No complicated setup. Itās just there and it works out of the box
On the negative side: Thereās only limited ways to connect to it. Once you reload everything is gone (non persistant). Sometimes things in the browser simulation work, which wonāt work on a real blockchain.
Itās a great way to get started!
Deploy to JavaScript VM in Remix
Select the JavaScript VM from the Environment Dropdown in the āDeploy & Run Transactionsā Plugin:
Then simply hit ādeployā:
See how quickly that deployed? No MetaMask Popup. No wait time. Itās just there. Bam! āØ
But itās also not perfect, because thereās no way to connect other tools to this blockchain. Itās gone when you close the browser. All in all itās not perfect.
Letās checkout Ganache!