I have the following code :
var f1 = document.getElementById("f"), 
f1 = function () {
var rd1 = new FileReader();
rd1.onload = function () {
              
             function assign () { 
                toto = function toto() {
                     // Code there
             }
        rd1.readAsBinaryString(f1.files[0]);
    }; 
f1.addEventListener('change', rd1);
What I want is to be able to call the function toto() outside of this above block. Is there a way to do that or the scope doesn't allow it ?
 
    