I need some help to understand nested function in javaScript. So, below is a fictional script with nested functions, can somebody help me to understand how to unnest them ?
function start (){
document.ontouchmove = function1;
document.onmouseup = function3 = function2;
};
function function1 (){
//code
};
function function2 (){
// code
};
function function3 (){
//code
};