|
// route handler for /questions endpoint with optional questionId parameter |
In general, it shouldn't be necessary to include comments like this in production code. If it isn't obvious from the code what each piece of code is, then we should probably be using more descriptive variable names. But in this case I think that lines 13 and 14 are already very clear as written.
QuestionsAndAnswersAPI/server/index.js
Line 12 in 9e8ff4f
In general, it shouldn't be necessary to include comments like this in production code. If it isn't obvious from the code what each piece of code is, then we should probably be using more descriptive variable names. But in this case I think that lines 13 and 14 are already very clear as written.