jcicero518
3/20/2019 - 6:04 PM

JS Functions

Example, will return true because function stealth() is hoisted

function stealthCheck(){ 
  assert( stealth(), "We'll never get below the return, but that's OK!" ); 
 
  return stealth(); 
 
  function stealth(){ return true; } 
} 
 
stealthCheck(); // true