Convert the value of string to upper case. - Javascript String

Javascript examples for String:Quiz

Description

Convert the value of string to upper case.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<p id="demo"></p>

<script>
var txt = "Hello World";
document.getElementById("demo").innerHTML = txt.toUpperCase();
</script>/*from w  w  w.j a va 2 s.  co  m*/

</body>
</html>

Related Tutorials