Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assignments week 1 Asim #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Muatasim-Aswad
Copy link

No description provided.

@sarlam sarlam self-assigned this Sep 30, 2024
Copy link

@sarlam sarlam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks perfect, well done!

Comment on lines +17 to +18
const { cityName } = req.body;
res.send(cityName);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To go one step further you can ask yourself what shall this do if the body do not have a cityName, or have a city that do not exist

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @sarlam, thank you for your feedback.

I applied error and edge cases handling in week2 as it's more comprehensive, and goes a bit beyond just applying the basics of Express.

@sarlam sarlam added the Approved label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants