Question: Hello This question is related to Java I hope to answer this question without handwriting Thank you Question Three 2 Marks) Write a JavaScript code
Hello
This question is related to Java
I hope to answer this question without handwriting
Thank you





Question Three 2 Marks) Write a JavaScript code to do the following: Displays a menu in a prompt to ask the user to choose between menu items The choices as follow: o choice o-exists with an alert message "Bye" o Choice 1 - prompts the user to input a number and then it alerts the result of that number to the power of 2 o choice 2 - prompts the user to input a number and then it alerts the result of that number's square root o Choice 3 - prompts the user to input a number and then it alerts the floor of that number o Invalid choices - alerts "Invalid choice" and then displays the menu again An embedded page at fiddle.jshell.net says Please make a choices 1. Power of 2 2. Square root 3. Floor of a number Cancel OK An embedded page at fiddle.jshell.net says Power Calculator Please input a number: An embedded page at fiddle.jshell.net says An embedded page at fidde.jshell.net says Please make a choice DE 1. Power of 2 2. Square root 3. Floor of a number An embedded page at fiddle.jshell.net says Square root Calculator Please input a number: Cancel An embedded page at fiddle.jshell.net says An embedded page at fiddle.jshell.net says Please make a choice: 0. Exit 1. Power of 2 2. Square root 3. Floor of a number Cancel OK An embedded page at fiddle.jshell.net says Floor of number Calculator Please input a number: 32.211 Cancel OK An embedded page at fiddle.jshell.net says OK An embedded page at fiddle.jshell.net says Please make a choice: 0. Exit 1. Power of 2 2. Square root 3. Floor of a number Cancel An embedded page at fiddle.jshell.net says Invalid Choice OK An embedded page at fiddle.jshell.net says Please make a choice 0. Exit 1. Power of 2 2. Square root 3. Floor of a number Cancel OK An embedded page at fiddle.jshell.net says Bye
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
