IBM interview question

Javascript basic logical questions like array based.