DEV Community

Discussion on: Some Useful JavaScript String Methods You May Not Know About

Collapse
 
robinscodeongit profile image
robin

Thanks for this helpful article,
some of these methods I never used till now, so I had to try them out immediately :-)

but since I tried your examples noticed some small mistakes in the comments within your source code which might confuse people
In .padStart and .padEnd your comment says the string was padded with abcdef instead of 123456 in the third example of both.

And after replacing chicken with duck, it still says chicken in the comment

But really thanks for the article

Regards

Collapse
 
aumayeung profile image
John Au-Yeung

Thanks for reading and catching those typos.

I'll fix them.