+ 1
Convert loweer string to upper
1
2 Answers
+ 4
Is this what you are try to do?
<!DOCTYPE html>
<html>
<body>
<p>Click the button to convert a string to uppercase letters.</p>
<button onclick="capps()">Try it</button>
<p id="OutPut"></p>
<script>
function capps() {
var str = prompt("Enter a word");
var res = str.toUpperCase();
document.getElementById("OutPut").innerHTML = res;
}
</script>
</body>
</html>
you can read more on it at http://www.w3schools.com/jsref/jsref_touppercase.asp
Hope this helps!
+ 1
Convert loweer string to upper in to function