Home  >  Article  >  Web Front-end  >  Getting started with the toLowerCase method of JavaScript string objects (used to convert letters to lowercase)_Basic knowledge

Getting started with the toLowerCase method of JavaScript string objects (used to convert letters to lowercase)_Basic knowledge

WBOY
WBOYOriginal
2016-05-16 16:33:361742browse

JavaScript toLowerCase method

toLowerCase method is used to convert (English) string to lowercase and return the converted string. Its syntax is as follows:

Copy code The code is as follows:

str_object.toLowerCase()

toLowerCase method instance

Copy code The code is as follows:



Run this example, and the prompt box will pop up and output: aabbcc

toLocaleLowerCase method

toLocaleLowerCase method toLowerCase is basically the same, toLocaleLowerCase converts the string to lowercase according to the local method. Only a few languages, such as Turkish, have local case mapping.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn