Why would one case return an object (func1) but the other return undefined (func2)
function func1(){
return {
bar: "hello"
};
}
function func2(){
return
{
bar: "hello"
};
}
Why would one case return an object (func1) but the other return undefined (func2)
function func1(){
return {
bar: "hello"
};
}
function func2(){
return
{
bar: "hello"
};
}