CodesJava

Easy learning with example program codes

JavaScript String toUpperCase() method

The JavaScript string toUpperCase() method transforms the given string into uppercase letter.

Syntax:

string.toUpperCase() 

Return:
String with upper case letters.

Example:

<!DOCTYPE html>
<html>
<body>
<script>   
var a ="Hello World!";  
document.write(a.toUpperCase());  
</script>
</body>
</html>

Output:

HELLO WORLD!
Please follow and like us:
error








Copyright © 2019 CodesJava DMCA.com Protection Status