JSFiddle - React, Tailwind, and code Playground

by Tom M

JavaScript

function largestPalindromeProduct(n) {
  let product = Math.pow(10, n) -1;
  console
  for (let i = max; max > 0; i--) {
    for (let j = max; max > 0; j--) {
      let result = i*j;
      
      console.log(result);
    } //end second j loop
  } //end first i loop
} //end function

largestPalindromeProduct(2);