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 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
Get step-by-step solutions from verified subject matter experts
