Supprimer le nœud de la fin

let coolThing = [1, 2, 3, 4, 5];
coolThing.splice(-n, 1);
jawwson