How It Works: Scrolling the Table Body

In this lesson, we'll learn how to scroll a table body by going through a coding exercise together! Let's dive right in!

How it works

The JavaScript shown in step one creates 100 rows in a loop. It generates two random numbers and adds a new table row with two columns; one with the definition of adding the two random numbers, and another with the result.

Get hands-on with 1200+ tech skills courses.