;

How to Convert String to UpperCase in Javascript


Tutorialsrack 27/02/2022 Jquery Javascript

In this article, you’ll learn how to convert string to uppercase in javascript. To convert the string to uppercase, you can use the toUpperCase() method. 

This method converts the string to uppercase and it does not take any parameter. This method does not change the original string. 

This method does not affect any of the special characters, digits, and alphabets that are already in the upper case.

console.log('Welcome To TutorialsRack!!'.toUpperCase());
// Output ==> "WELCOME TO TUTORIALSRACK!!"

console.log('WELCOME TO TUTORIALSRACK!!'.toUpperCase());
// Output ==> "WELCOME TO TUTORIALSRACK!!"

console.log('WELCOME TO TutorialsRack!!'.toUpperCase());
// Output ==> "WELCOME TO TUTORIALSRACK!!"

I hope this article will help you to understand how to convert string to uppercase in javascript.

Share your valuable feedback, please post your comment at the bottom of this article. Thank you!


Related Posts



Comments

Recent Posts
Tags