Home > Web Front-end > JS Tutorial > How to convert uppercase to lowercase in js?

How to convert uppercase to lowercase in js?

烟雨青岚
Release: 2020-06-13 13:52:12
Original
4084 people have browsed it

How to convert uppercase to lowercase in js?

#How to convert uppercase to lowercase in js?

js letter case conversion method:

1. Convert to uppercase: toUpperCase()

2. Convert to Lowercase: toLowerCase()

3. Example:

Example 1:

var a="aBcD";
a=a.toUpperCase();
alert(a);
Copy after login

The prompt is ABCD

Example 2:

var a="aBcD";
a=a.toLowerCase();
alert(a);
Copy after login

The prompt is abcd

Recommended tutorial: "JS Tutorial"

The above is the detailed content of How to convert uppercase to lowercase in js?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
js
Statement of this Website
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
Latest Issues
Where is js written?
From 1970-01-01 08:00:00
0
0
0
js file code not found
From 1970-01-01 08:00:00
0
0
0
js addClass not working
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template