Should probably be "arr.length - n"