Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How does javascript convert a string from uppercase to lowercase

Shulou Source: shulou.com Published: 2022-05-31 11:45:54 10月05日 Update

This article introduces the knowledge of "how javascript converts string uppercase to lowercase". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

In javascript, you can use the toLowerCase () method to convert uppercase strings to lowercase, which converts all uppercase characters in the string to lowercase characters, with the syntax format "string.toLowerCase ()".

The operating environment of this tutorial: windows7 system, javascript1.8.5 version, Dell G3 computer.

In javascript, you can use the toLowerCase () function to convert uppercase strings to lowercase.

Here is an example to learn about:

Var str= "Hello World!" console.log (str.toLowerCase ())

Output:

Var str= "HELLO WORLD!" console.log (str.toLowerCase ())

Output:

Description:

The toLowerCase () method is used to convert a string to lowercase, and all uppercase characters in the string can be converted to lowercase characters.

Grammar

StringObject.toLowerCase ()

Return value

A new lowercase string.

This is the end of the introduction of "how to convert string uppercase to lowercase by javascript". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Characters strings lowercase uppercase methods output content more knowledge grammar practicality learning next functions dilemmas reality situations tutorials articles formats Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS NVidia MySQL Linux vpn