in several of the items in this project the suggestions tell us to declare variables to use as the return value, instead i chose to return the value from a ternary operator on line of code; to me this looks much cleaner and can’t really see the importance of the other approach.
example following Codecademy suggestion:
let hasValue = object.hasOwnProperty(key);
return object.hasOwnProperty(key) ? true : false;
can anyone illustrate this for me please?