Question: Modify the code of Question 1 to request the times table to be displayed from the user; the code should continue to request and display

Modify the code of Question 1 to request the times table to be displayed from the user; the code should continue to request and display times tables until the user enters -1. Additionally, do a check to make sure that the user is entering a valid number; if the number is not valid, ask the user to re-enter it.


Data from Question 1

Change the code of Question 2 from Chapter 3 so that it’s a function that takes as parameters the times table required and the values at which it should start and end. For example, you might try the 4 times table displayed starting with 4 * 4 and ending at 4 * 9.


Data from Question 2 from Chapter 3

Using document.write(), write code that displays the results of the 12 times table. Its output should be the results of the calculations.12 12 12 12 12 * * * * 1 = 12

12 12 12 12 12 * * * * 1 = 12 2 = 24 3 = 36... 11 = 132 12 = 144

Step by Step Solution

3.38 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The function remains the same so lets look at the new code The first change from Question 1 is that ... View full answer

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 Beginning JavaScript Questions!