how to return a javascript object from function code example
Example: how to return an object in javascript
function func() {
return {
name: "Name",
age: 34
};
}
function func() {
return {
name: "Name",
age: 34
};
}