Array Problem

I know this is basic, but I cant seem to understand why this doesn’t work.


array = new Array();
array[1] = "a";
if (array.slice(0, 1) == "a") {
    trace("Maybe my life isn't worthless!!!");
}