Sonobi interview question

Tell me how you get an array of data using javaScript and print it to the screen.