In the example below, I can call the functional expression b from the functional expression a even though b() is not defined at that point. Could you explain why this works?
Thanks in advance!
function go() {
const a = () => {
b();
}
const b = () => {
console.log("abc")
}
a();
}
go();