如果我是从另一个函数内部调用的函数,我如何退出主/父函数?
例如:
function(firstFunction(){
//stuff
secondFunction()
// stuff if second function doesnt exit
}
function secondFunction(){
if( // some stuff here to do checks...){
/***** Exit from this and firstFunction, i.e stop code after this function call from running ****/
}
}