c# .net Adsense ADO.NET Linq Viruses/security asp.net MVC JQuery Angular-js Node-js SEO Java C++ SQL API Networking vb.net .Net Css JavaScript Generics c#.Net entity framework HTML Website host Website Construction Guide HTTP tutorial W3C tutorial Web Services JSON Psychology Ionic framework Angular ReactJS Python Computer Android
JavaScript

How to convert string to uppercase and lowercase using javascript?

| | Html , JavaScript

In this article we will discuss how to convert string to uppercase and lowercase using JavaScript. In JavaScript we can convert to Uppercase by using toUpperCase() method and for lowercase by toLowerCase() method.

Converting string to uppercase:

<script type="text/javascript">

    var mystring = "infinetsoft";

    alert(mystring.toUpperCase());

  </script>

output:

Converting string to lowercase:

<script type="text/javascript">

    var mystring = "CHIPTROLLS";

    alert(mystring.toLowerCase());
  </script>

output: