Question: Modify the Example 19.8 A. Use confirm function to always ask if the user wants to continue before the program ends. B. If the user

 Modify the Example 19.8 A. Use confirm function to always ask

Modify the Example 19.8

A. Use confirm function to always ask if the user wants to continue

before the program ends.

B. If the user click OK button, the program should start again.

C. If the user click Cancel button, then the program ends

and output (alert()) "See you next time" message.

html head> 3

JavaScript Sort ProgranK/title:> <script language-> lctrue: got-prompt ("Please enter a nurber", 7) answer confirm ("You input : " + got + ". Is this correct?"); if (answertrue) 10 13 14 15 16 17 18 19 20 21 var cr 1sliau (got); = if (cktrue) alert (got1s not a number") else 23 24 25 26 27 28 29 30 31 alert ("Your nurber squared"got got) Ic = false; // end if end if } while (le= true) 34 35 36 37 38 </script>

/body htrl>

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!