0

Why would one case return an object (func1) but the other return undefined (func2)

enter image description here

function func1(){
     return {
     bar: "hello"
    };
 }
 function func2(){
     return
    {
     bar: "hello"
    };
 }
Trey Zhong
  • 31
  • 3

0 Answers0