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

task complete #994

Closed
wants to merge 2 commits into from
Closed

task complete #994

wants to merge 2 commits into from

Conversation

Manankin
Copy link

Copy link

@olya-shyian olya-shyian left a comment

Choose a reason for hiding this comment

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

Great work!

parentForInput.insertBefore(label, input);
});

function capitalizeString(str) {

Choose a reason for hiding this comment

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

can we write this function shorter? like

str.slice(0, 1).toUpperCase() + str.slice(1),

Copy link
Author

Choose a reason for hiding this comment

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

Yes, it's easy. But in this case name='firstName' transform to "FirstName" instead of "First Name"
I have to capitalize name and split words - so every word from capital letter.

  1. For each input set placeholder based on input name. Capitalize it.

});

function capitalizeString(str) {
const capitalizeStr = str.split('').reduce((acc, char, index) => {

Choose a reason for hiding this comment

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

don't use 'str', 'func' etc.
write full name please

@Manankin Manankin requested a review from olya-shyian April 21, 2024 05:56
Copy link

@DanilWeda DanilWeda left a comment

Choose a reason for hiding this comment

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

Great!
Approved!

@Manankin Manankin closed this by deleting the head repository Jul 16, 2024
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