I coded the below program:

var Web3 = require("web3");

var web3 = new Web3(new Web3.providers.HttpProvider(''))


console.log('Connected?:' + Web3.isConnected());

It shows:

"TypeError: Web3.isConnected is not function"

How to solve the issue?

Thank you very much.

web3 version: 1.3.3


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.