The ground

Challenge 📝

Resources 📚

Given is an object obj each with two properties (name & category) of type String. Return the value of the property with the longer string. If both are of equal length, return the value of the name property.

function theGround(obj) {
}
Test Cases
Console Logs
JS Errors
Run Code!
flag