Skip to content

re: Your code should tell a story: Tips for writing code for others to read VIEW POST


It looks like under the #1 Bad snippet, you have a typo (resuls):

  const resuls = => ({ id:, result: result }));

And on #5 Good, I'm confused because the entity enum doesn't seem to be used. 'undergrad' is still passed as a string.


I also feel like courseID could be an enum, if there's a set number of course IDs

code of conduct - report abuse