Problem with Largest palindrome product

Tell us what’s happening:
Hello there. Recently I’ve wrote code for palindrome product and function largestPalindromeProduct(3) returns wrong value in your compiler.However,in other compilers it returns right value (906609). My code is below. Can anyone say what is the problem?
Your code so far

function reverseString(str)
    return str.split("").reverse().join("");
function getMaxOfArray(numArray) {
  return Math.max.apply(null, numArray);
function largestPalindromeProduct(n) {
let k=Math.pow(10,n);
let mult=1;
let numberString="";
let reversedString="";
let arrayOfNums=[];
let max=0;
for(let i=k/10;i<k;i++)
    for(let j=k/10;j<k;j++)
return Math.max(...arrayOfNums);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36.

To protect campers from freezing their browsers with infinite loops or infinite recursion, Free Code Camp will cancel function exectution if it runs for too long. If a solution is inefficient, it can end up running slowly enough that it triggers this infinite loop protection before it completes.

Okey,thx.Will try to rewrite my code.