Coding Challenge: Multiplication Table
Explore how to write a JavaScript program that generates a multiplication table for a user-provided number. Understand using loops like for and while effectively and validating input to accept numbers only between 2 and 8. This lesson helps build foundational skills in handling loops and conditional input.
We'll cover the following...
We'll cover the following...
Problem statement
Write a program that asks the user for a number, then show the multiplication table for this number.
Input
Enter a number: 2
Expected output
2 x 1 = 2
2 x ...