Question: Change the code of Question 2 from Chapter 3 so that its a function that takes as parameters the times table required and the values

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 (164 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Youve declared your function calling it writeTimesTable and given it three parameters The first i... 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!