Ex No: 1 | CONVERT TEXT TO UPPERRCASE |
---|---|
Aim: | To write a JavaScript code to convert the entered string to uppercase and display the result. |
Algorithm | |
Step1: Create a folder “Ex1” to place the HTML files. | |
Step2: Create HTML file “index.html”. | |
Step3: Add JavaScript code to get the value of text input and use javascript function to convert it to upper case. | |
Step4: Using JavaScript display the result in a label. | |
Source Code | |
index.html
|
|
Result: | Thus JavaScript code is written to convert the entered string to uppercase and display the result. |