Question: In Java Script Prompt the user to enter three characters (this can be done with three prompts in a row) Store each character as their

In Java Script

Prompt the user to enter three characters (this can be done with three prompts in a row)

Store each character as their own variables

Prompt the user to enter a size

Store the size as a number

If the size cannot be converted to a number, prompt the user again for a valid number. Loop this prompt until a valid number is entered.

Add a nested for loop that uses x and y as counters to iterate up to the user-entered size

Generate an interesting pattern (using the x and y values to make decisions) that places the three user-provided characters in a 2-dimensional grid

Add a " ' after each line

Output the generated pattern to the page in the myParagraph element, including a first so the piece starts on a new line

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!