Refactor the conditionals
See if you can refactor this code and reduce the cognitive complexity. When you run the code, change the values in the user object to get different outcomes.
See if you can refactor this code and reduce the cognitive complexity. When you run the code, change the values in the user object to get different outcomes.