JSFiddle - React, Tailwind, and code Playground
JavaScript
example()
function example() {
console.log("outside the if block above function b declaration"+b());
if (true) {
console.log("inside the if block"+a());
console.log("inside the if block above function b declaration"+b());
}
}
function a() {
return "you invoked function a";
}
function b() {
return "you invoked function b";
}