thank you @ILM
yes i use console.log with it but it give me all time true only whene i write the elements of arr1 and arr2 ex( arrysAreIdentical([βoβ,βkβ],[βkβ,βoβ]) it means dont work automaticly
Array.prototype.reverse() works in place. This means when you do arr1.reverse() you are reverting arr1, and also referencing arr1 in a new variable arr2 (so, both arrays will always be the same)
thank you @rferromoreno i fix that parte by doing this code ;
var arr1 = str.split(ββ);
var arr2 = str.split(ββ).reverse();
but i still have problem to show the result on screen , whene i use console.log on palindrome(βeyeβ); it return undefined