Hi have the following JavaScript function. When I call it, it returns undefined
. I would expect it to return an object. Why does it return undefined
?
function someFunction() {
return
{
name: 'Mary'
};
}
For example:
https://jsfiddle.net/richardmarais/Lwpygd17/1/
Thanks