Prompt the user for their name, and then how many droids, and then how many Wookiees they are looking for. Then print out the name that was given, as well as how many droids and Wookiees they wanted to meet. Here is an example of what you should print: Hi Sean, you want to meet 3 droids and 2 Wookiees. Side note: pls code using JavaScript, I tried coding with Python but was unsuccessful. Also this is not for a grade, it's so I have have a basis understanding of JavaScript.
Prompt the user for their name, and then how many droids, and then how many Wookiees they are looking for. Then print out the
name that was given, as well as how many droids and Wookiees they wanted to meet.
Here is an example of what you should print:
Hi Sean, you want to meet 3 droids and 2 Wookiees. Side note: pls code using JavaScript, I tried coding with Python but was unsuccessful. Also this is not for a grade, it's so I have have a basis understanding of JavaScript.

Algorithm:
-
Start the program
-
Use the "prompt" function to request the user's name and store it in a variable "name".
-
Use another "prompt" function to request the number of droids and store it in a variable "numDroids".
-
Use another "prompt" function to request the number of Wookiees and store it in a variable "numWookiees".
-
Use "console.log" to display the message to the user, combining the variables "name", "numDroids", and "numWookiees".
-
End the program.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images









