

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to convert a string into upper case using JavaScript?
To convert a string into upper case, use the JavaScript toUpperCase() method. This method returns the calling string value converted to uppercase.
Example
You can try to run the following code to convert a string into the upper case −
<html> <head> <title>JavaScript String toUpperCase() Method</title> </head> <body> <script> var str = "demo text"; document.write(str.toUpperCase( )); </script> </body> </html>
- Related Questions & Answers
- Convert a C++ String to Upper Case
- How to convert a string into the lower case using JavaScript?
- How to convert Lower case to Upper Case using C#?
- How to convert Upper case to Lower Case using C#?
- How to convert a string into Title Case in Golang?
- How to convert a string vector into title case in R?
- C program to convert upper case to lower and vice versa by using string concepts
- How to convert a string to camel case in JavaScript?
- Convert mixed case string to lower case in JavaScript
- How to convert the image into a base64 string using JavaScript?
- PHP – Make an upper case string using mb_strtoupper()
- How to transform List string to upper case in Java?
- How to convert a string into integer in JavaScript?
- How to convert a JSON string into a JavaScript object?
- How to convert an array into JavaScript string?
Advertisements