I have the following piece of code:
function initValidation()
{
    // irrelevant code here
    function validate(_block){
        // code here
    }
}
Is there any way I can call the validate() function outside the initValidation() function? I've tried calling validate() but I think it's only visible inside the parent function.
 
     
     
     
     
     
     
     
     
     
     
     
     
     
     
    