Question: java script Write code that does the following a) Add a new heading and button as usual, but for this part, add a element for
java script

Write code that does the following a) Add a new heading and button as usual, but for this part, add a
element for output. b) Ask the user to enter a number to specify the size of an x. c) Then draw the X using Xs, spaces, and newline characters, ", to end each line. Below are examples for width 5 and width 6 x x X X X XX x x x x x x d) Once you have a single X drawn correctly, add a second prompt and ask the user how many Xs to draw. Then draw that many Xs one on top of another so it might look like the following for 3 Xs of width 5. XX XX x x XX X XX X X x x XX X X X x x X X X X XX x x
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
