Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

- validate (10 points) - have an What is your secret Pass Phrase? - have a prompt that asks the user for a 4 word

image text in transcribed

- validate (10 points) - have an

What is your secret Pass Phrase? - have a prompt that asks the user for a 4 word pass Phrase on the page load. - It will have two buttons (centered) and formatted with CSS to look visually appealing which will output to the screen. If you go for the bonus you will need to add another button. - The first button will output (your choice of output--alert or use innerHTML) : - The original pass Phrase as entered - The pass Phrase in all lowercase - The pass Phrase in all uppercase - The length of the passPhrase - The second button will output: (your choice of output--alert or use innerHTML): - The pass Phrase as an array by word - Shift the first word to last in the array - Add a new word "secret" to the index 2 spot in the array - Output the final result of these changes, or each individual step (must have different copies of the array to show each individual step), your choice. - Bonus + 10 Optional--The third button is optional for bonus points and should output the following: (your choice of output--alert or use innerHTML) : - The original pass Phrase as an array by letter - This array pass Phrase by letter reversed - This array pass Phrase sorted by letter How to do it the easy way--Hint: for each of the buttons, assign the results to different variables and when you output, use the variables in one long text string. Also when you deal with arrays, unless you make a copy of an array every step you take changes the original array. For the second button requirements, you may output each step (by making copies of the array), or just the final array (don't make a copy)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beyond Big Data Using Social MDM To Drive Deep Customer Insight

Authors: Martin Oberhofer, Eberhard Hechler

1st Edition

0133509796, 9780133509793

More Books

Students also viewed these Databases questions

Question

Does your product/program have a descriptive and memorable slogan?

Answered: 1 week ago

Question

Explain the market segmentation.

Answered: 1 week ago

Question

Mention the bases on which consumer market can be segmented.

Answered: 1 week ago