0

taken from YDKJS.

foo(); // "b"

var a = true;

if (a) {
    function foo() { console.log( "a" ); }
} else {
    function foo() { console.log( "b" ); }
}
Gerardo Furtado
  • 95,740
  • 9
  • 109
  • 159

0 Answers0