+ 1

Convert loweer string to upper

1

8th Dec 2016, 8:43 PM
Nashwan Aziz
Nashwan Aziz - avatar
2 Respostas
+ 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!
8th Dec 2016, 9:16 PM
Metrik 🕵
Metrik 🕵 - avatar
+ 1
Convert loweer string to upper in to function
8th Dec 2016, 8:47 PM
Nashwan Aziz
Nashwan Aziz - avatar