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

add task solution #327

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

add task solution #327

wants to merge 1 commit into from

Conversation

Softjey
Copy link

@Softjey Softjey commented Feb 19, 2024

No description provided.

Copy link

@maxim2310 maxim2310 left a comment

Choose a reason for hiding this comment

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

Good work, but lets make some improvement

const notValid = notValidLength || startWithZero || withDuplicates;

if (notValid) {
return false;

Choose a reason for hiding this comment

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

would be better to show more informative error for user

Copy link
Author

Choose a reason for hiding this comment

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

/**

  • Checks that the user input is valid.
  • Valid user input is a 4-digit number that does not start with 0
    @@ -9,7 +13,18 @@
  • @return {boolean} - True if the user input is valid, false otherwise
    */

I followed this instruction. Should this funciton output an error to the console?

@Softjey Softjey requested a review from maxim2310 February 20, 2024 08:42
Copy link

@lerastarynets lerastarynets left a comment

Choose a reason for hiding this comment

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

You're doing amazing, keep it up!

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.

3 participants