Question: Update table using JavaScript Use the code from this html file: M4CA1.html thatcreates and displays a table similar to Table1. Update the html file to

Update table using JavaScript

Use the code from this html file: M4CA1.html thatcreates and displays a table similar to Table1. Update the html file to display N as in Table2. NOTE that Table 2 is differentfrom Table 1 in the following ways:

  • Table 2 had new rows to display values when N is greater than 5and less than 10,
  • it has an extra column that displays N multiplied by tenthousand and
  • its table header uses superscripts.

Code from M$CA1.html file:

00 01 02 03 04 05 06 07 08 09 A OB

Table 1: 10, 100, and1000 times N

Table 2: N times 101, 102,103 and 104

00 01 02 03 04 05 06 07 08 09 A OB Oc OD E OF 10 11 12 13 3456789 PPPPPP 14 15 16 17 18 19 N * Tens, Hundreds, and Thousands var n = 0; // counter control variable document.writeln( " " ); document.writeln(" N 10*N " + " 199*N 1099*N " ); while (++n

Step by Step Solution

3.45 Rating (155 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

HTMLJavaScript Code N Tens Hundreds Thousands Tenthousands script var n 0 counter control variable ... 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 Electrical Engineering Questions!