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

1 Expert Approved Answer
Step: 1 Unlock

function Capitalizestr Assumes str is a word Returns str with f... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (1 attachment)

Word file Icon

1409-C-S-O-S(1134).docx

120 KBs Word File

Students Have Also Explored These Related Operating System Questions!