Vertica interview question

Use Javascript to build a list