0

taken from YDKJS.

foo(); // "b"

var a = true;

if (a) {
    function foo() { console.log( "a" ); }
} else {
    function foo() { console.log( "b" ); }
}
Gerardo Furtado
  • 100,839
  • 9
  • 121
  • 171

0 Answers0