For example
function a(){
return {
testing:1
};
}
function b(){
return
{
testing:1
};
}
In the above code the function a() returns an object of {testing:1}, but the function b() returns the value of undefined. What is the reason behind this behaviour?
Is it because the return value starts in the second line?