var massive= new Array(); massive[1]="слово1"; massive[3]="слово2"; massive[5]="слово3"; for(var k in massive ) { if ( ~~k == k ) { alert( massive[ k ] ); } }