Create a text file named string.js and enter the Capitalize function into that file. Then, modify your
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 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?
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Question Posted: