Xavient interview question

JavaScript arrays