Object creation
Return a new object containing the given value.
Sample Code:
function objCreate(val) {
// Enter your logic here...
}
Examples:
Input: 3
Output: {key:3}
Explanation: 'key' is a property, while 3 is a value.
Input: [1,2]
Output: {key:[1,2]}
Explanation: 'key' is a property, while [1,2] is a value.