Skip to content

task solution#372

Open
MaksymMohyla wants to merge 3 commits intomate-academy:masterfrom
MaksymMohyla:develop
Open

task solution#372
MaksymMohyla wants to merge 3 commits intomate-academy:masterfrom
MaksymMohyla:develop

Conversation

@MaksymMohyla
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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

Great job on implementing the basic HTTP server in createServer.js! 🎉 The code meets the task requirements and correctly handles the request URL and query. Just a small note: the condition if (!parts) will always be false since parts is an array. You might want to check if the array is empty using if (parts.length === 0) instead. Keep up the good work! 😊

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨


console.log(reqUrl);

if (!parts) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The condition if (!parts) will always evaluate to false because parts is an array and will always be truthy. Consider checking if the array is empty instead, like if (parts.length === 0).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants