IBM Interview Question

Javascript basic logical questions like array based.