(web3.eth.getBlockNumber ()). Then ((result) = > {
) console.log("Node " + index + " : " + result);
// alert("");
resolve(new Web3(new Web3.providers.HttpProvider(element)));
}, (err) = > {
// alert("");
resolve(new Web3(new Web3.providers.HttpProvider(element)));
});-sharp-sharp-sharp
the environmental background of the problems and what methods you have tried
related codes
/ / Please paste the code text below (do not replace the code with pictures)