DEV Community

Discussion on: Your code should tell a story: Tips for writing code for others to read

Collapse
 
thekarel profile image
Charles Szilagyi

Nice one, should get more ❤️s!

By the way, I guess you meant

const entity = {
  UNDERGRAD: 'underGrad',
  POSTGRAD: 'postGrad',
}

getResultsFromDB({ entity: entity.UNDERGRAD, courseId: 'SCIENCE_101'})

Collapse
 
collinstommy profile image
Tom Collins

haha yes. That would very much negate the advantage here!

Nice spot. Article updated.