Get the App
SLTechnology News&Howtos  ›  Development  › 

How JavaScript uses the capitalize function

Shulou Source: shulou.com Published: 2022-06-01 02:38:59 11月14日 Update

This article mainly introduces JavaScript how to use the capitalize function, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.

Capitalize: the first uppercase of a string

Function capitalize (str) {return str.charAt (0). ToUpperCase () + str.slice (1)} / / abc = = > Abc// uses the memory function let _ capitalize = cached (capitalize) to thank you for reading this article carefully. I hope the article "how JavaScript uses the capitalize function" shared by the editor will be helpful to you. At the same time, I also hope you will support us, pay attention to the industry information channel, and more related knowledge is waiting for you to learn!

Tags: Articles functions values interests at the same time uppercase characters strings more friends knowledge editing industry memory information information channels channels references learning help Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Shulou Technology MariaDB OPPO Reno NVidia