Strange access to data class

I would like to have the both output in the console, before the permute() method and after.

let myTest = new classTest(1,2,3);
function setup() {
createCanvas(400, 400, WEBGL);

console.log(myTest.groupe); // should print [1,2,3] -> values get from constructor class. it doesn't
myTest.permute();
console.log(myTest.groupe); // should print [3,1,2] and it does
}