Question: Prompt user to enter a string b. Display the content of string as an h2 element in the div container created above. c. Loop through

Prompt user to enter a string

b. Display the content of string as an h2 element in the div container created above.

c. Loop through each character/digit of the string and store the ASCII value of each as element in

an array.

d. Display array content separated by hyphen - in a new h2 element in the div container created

above.

e. Sort the values of array in ascending order and display new content in a new h2 element in the div container created above.

Programming language java script

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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

Students Have Also Explored These Related Databases Questions!