> Functions
Removes the last element of the array array and returns it.
In JavaScript, a.pop() returns undefined on an empty array, where pop in LeekScript reports an error in the log and returns null: test === undefined, or check the length before calling it. Beware: an undefined legitimately stored in the array gives exactly the same result.
In Python, a.pop() raises an IndexError on an empty list, where pop in LeekScript reports an error in the log and returns null: test if a: before calling it. a.pop() also accepts an index — a.pop(0) removes and returns the first element, see shift — and an out-of-bounds index raises an IndexError too.
Impossible de charger les données du jeu.
Vérifiez votre connexion et réessayez.