Create an array that contains five, string variables. Use bracket notation [ ] to access the first item in the array and assign the results to a variable. Determine the length of the array and assign the results to another variable. Use the appropriate JavaScript code to convert either variable to all capital letters Display results that contain both variables as well as a descriptive string. For example: There are _________ items, but the first one is ___________
Use JSFiddle to write the program below.
Include appropriate comments throughout your program: One comment at the beginning describing the purpose of the program and at least two additional comments throughout that describe each procedure.
Make sure that you have logged in to your account before you begin so that the URL with your name is displayed.
-------------------------------------------------------------------------------------------------
-
Create an array that contains five, string variables.
Use bracket notation [ ] to access the first item in the array and assign the results to a variable.
Determine the length of the array and assign the results to another variable.
Use the appropriate JavaScript code to convert either variable to all capital letters
Display results that contain both variables as well as a descriptive string. For example:
- There are _________ items, but the first one is ___________
Submit your completed JSFiddle link.
Step by step
Solved in 4 steps with 2 images