Languages
[Edit]
EN

JavaScript - test if letter is uppercase

0 points
Created by:
Reilly-Collier
860

In this article, we would like to show you how to test if the letter is uppercase using JavaScript.

Quick solution:

 

1. Practical example

Edit

In this example, we use toUpperCase() method to compare a given letter with the letter in uppercase (expected).

2. With specified locale

Edit

In this example, we use toLocaleUpperCase() method to compare a given letter with the letter in uppercase with specified locale (expected).

 

See also

Edit
  1. JavaScript - test if letter is lowercase

References

Edit
  1. String.prototype.toUpperCase() - JavaScript | MDN
  2. String.prototype.toLocaleUpperCase() - JavaScript | MDN

Alternative titles

  1. JavaScript - test if letter is capital letter
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