mardi 23 février 2021

Node Js in Visual Studio Code

How do i run node.js in visual studio code or on my Website?

Let's assume i got some basic code in VSC:

const Web3 = require('web3');

How do i connect that with my html code?

At the moment im trying it like that:

<script>
    const Web3 = require('web3');
</script>

I also tryed to import the code as a js:

<script src="zahlung.js"></script>

But i always get errors with 'require'.




Aucun commentaire:

Enregistrer un commentaire