I think the cleanest and most expressive is still this
const hasFrontendFrameworkExperience = userHasAngularExperience || userHasReactExperience || userHasVueExperience; if(userMissedAppointment){ return 'nope'; } else if(hasFrontendFrameworkExperience && userCanStartInstantly){ return 'hire'; } return 'maybe';
Your function behaves slightly different than the example, bit this just might prove your point of the switch not being readable enough 😅
The difference is that in the switch an angular experienced used doesn't have to start immediately.
You are definitely right :D Well in that case I wouldn't mind the right if else combo either
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I think the cleanest and most expressive is still this
Your function behaves slightly different than the example, bit this just might prove your point of the switch not being readable enough 😅
The difference is that in the switch an angular experienced used doesn't have to start immediately.
You are definitely right :D Well in that case I wouldn't mind the right if else combo either