I'm having trouble with this issue and I haven't been able to find a definitive solution.
Is there a way to execute the function y()
within the function z()
without changing the structure of the code?
I attempted to do this but it was unsuccessful.
function x(){
function y(){
console.log("sal y")
}
function z(){
console.log("sal z");
y()
}
}