Languages
[Edit]
EN

TypeScript - convert string to uppercase

0 points
Created by:
Diana
720

In this quick article, we are going to discuss how to convert string to upper case in TypeScript. String class contains two methods that help to make the conversion to upper case. One of them allows making conversion by taking into account locale. To see practical usage of methods look at the below examples.

1. Built-in conversion approach example

Edit

This section shows how to convert any string to upper case taking into account locale. In almost all cases it produces a similar output string to version without locale.

Output:

2. Built-in conversion approach with locale example

Edit

This section shows how to convert any string to upper case taking into account locale. In almost all cases it produces a similar output string to version without locale.

Output:

Alternative titles

  1. TypeScript - how to convert string to upper case?
  2. TypeScript - how to change string to big letters?
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join