JS inside the loop is the most in daily programming is also the most basic, we can achieve 99 multiplication table to achieve learning and skilled JS loop skills.
This article only implements 99 multiplication tables, but you can practice using loops to print a variety of shapes, such as squares or triangular rows, according to your preferences.
Print 99 multiplication Table ideas:
The 1,99 multiplication table has nine rows and nine columns, but the number of columns per row is incremented. So we need to use two loops, one for the row loop and one for the column loop.
2, when splicing HTML content with JS, the cell loop is nested within the loop of the row.
The code is as follows:
<! Doctype html>As for the style, you can adjust your own slowly.
This article is from the "10975329" blog, please be sure to keep this source http://10985329.blog.51cto.com/10975329/1897143
JS Loop implementation 99 Multiplication table