As someone new to JavaScript, I am eager to learn. My goal is to create two "for" loops: one to save the values of the 6 times table up to 12x6 into an array called timesTable, and another to display these values in the console (e.g., 0 x 6 = 0). Thank you.
<script>
var timesTable = new Array();
var multiplier = 6;
for (var i = 0; i <= 5; i++) {
timesTable[i] = i * multiplier;
console.log(i + " x " + multiplier + " = " + timesTable[i]);
}
</script>