Uncaught ReferenceError: can't access lexical declaration "'Web3'" before initialization code example
Example: cannot access function before initialization js
function test(){
let foo = 33;
if (true) {
foo = (foo + 55);
}
}
test();
function test(){
let foo = 33;
if (true) {
foo = (foo + 55);
}
}
test();