Home > Web Front-end > JS Tutorial > Getting started with the toUpperCase method of JavaScript string objects (used to convert letters to uppercase)_Basic knowledge

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-16 16:33:34
Original
1572 people have browsed it

JavaScript toUpperCase method

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

Copy code The code is as follows:

str_object.toUpperCase()

toUpperCase method instance

Copy code The code is as follows:


Run this example, output:

Copy code The code is as follows:

AABBCC

toLocaleUpperCase method

toLocaleUpperCase method toUpperCase is basically the same. toLocaleUpperCase converts the string to uppercase according to the local method. Only a few languages, such as Turkish, have local case mapping.

Related labels:
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
What are JavaScript hook functions?
From 1970-01-01 08:00:00
0
0
0
What is JavaScript garbage collection?
From 1970-01-01 08:00:00
0
0
0
c++ calls javascript
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