Question: Create a text file named string.js and enter the Capitalize function into that file. Then, modify your strdemo.html page so that it loads this library
Create a text file named string.js and enter the Capitalize function into that file. Then, modify your strdemo.html page so that it loads this library file. When the button in the page is clicked, in addition to displaying the previous values, it should also call the Capitalize function and display the capitalized word in the page.
Once you have done this, test the page using various string inputs to verify that the function produces the desired results. How does the function behave when given a string containing characters other than letters (e.g., digits, spaces, punctuation marks)? Explain your observations?
Step by Step Solution
3.49 Rating (175 Votes )
There are 3 Steps involved in it
function Capitalizestr Assumes str is a word Returns str with f... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
1409-C-S-O-S(1134).docx
120 KBs Word File
