Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video.
Useful Array Methods9:08 with Dave McFarland
Learn three of the nearly two dozen methods used to modify, search and combine arrays.
Since this video was shot, the behavior of most browsers has changed, so you won't see the same thing as I demonstrate in the video. In the video, you'll see that my script is able to print out to the browser using
document.write( ) while inside a loop.
Most browsers no longer do that: they wait until the loop finishes and then they print to the window. So, you'll see a blank page until you type
quit in the prompt window — then you'll see all the output printed to the screen.
Sorry for the confusion, and we'll update the video soon.
You need to sign up for Treehouse in order to download course files.Sign up