Java-script create columns and rows based on user input

This is a JavaScript homework question that has taken me far too long to search the web to figure out. Based on learning loops, while, do while, and for loops. I am to:

Prompt the user for a number of rows
and a number of columns. Using the * output the *
character in the row and column pattern requested
by the user. If the user requests 2 rows and 2
columns you should output:



Code thus far:

var row = prompt("How many rows?")
var column = prompt("How many columns?")

I would appreciate the guidance that could lead me to the answer.

Source: JavaSript – Stack Overflow

September 17, 2021
Category : News
Tags: java | javascript | loops | user-input

Leave a Reply

Your email address will not be published. Required fields are marked *

Sitemap | Terms | Privacy | Cookies | Advertising

Senior Software Developer

Creator of @LzoMedia I am a backend software developer based in London who likes beautiful code and has an adherence to standards & love's open-source.