Question: USE HTML FILE AND JAVASCRIPT FILE. Have one html page to request input for how many rows needed and have it connected to a .js

 USE HTML FILE AND JAVASCRIPT FILE. Have one html page to

USE HTML FILE AND JAVASCRIPT FILE. Have one html page to request input for how many rows needed and have it connected to a .js file which has the function. The output must also show up on the html page

Part 3. Write a function drawPyramid(height) that draws a pyramid of stars of the specified height in which the width of each row increases by two as you move downward. Each of the rows should be centered with respect to the others. Thus, calling drawPyramid(8) should produce the following figure

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!