Question: javascript: Write a program that prompts for the names of two ( 2 ) flowers and stores them. The program then displays the entered names

javascript: Write a program that prompts for the names of two
(2)
flowers and stores them. The program then displays the entered names from storage with descriptive labels. The names are then swapped in their storage locations, the first name is put in the second one
s storage and the second name is put in the first one
s storage. The names are then displayed again from storage with labels.
Restrictions
No more than three variables are allowed for this part. You must output the two variables in the same order for the
Strings as entered
output and the
Switched strings
section. You can
t just output each variable in reverse order. You actually need to swap the data from one variable into the other.

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!