Something unknown is doing we don't know what.” Sir Arthur Eddington
A resource for web developers a code snippet library with step by step tutorials.

a resource for web developers...

       

Search Amazon

JavaScript: Arrays tutorial code snippet 6.

 

Up Up to JavaScript: Arrays overview page

 

 

Using a 'for loop' with a 'parallel array' structure.

Use of 'parallel array' structure in storing related data.

Collecting user input with the window 'prompt()' method dialog box and storing in an array.

 

Source code view



 

 

You can open the above example in a new window to view the 'window.prompt()' dialog.


View above example in a new window


Please note:

Default security settings in Internet Explorer 7.0® may prevent the snippets incorporating the 'window.prompt()' dialog window from running.

All snippets should run OK if you are using a Firefox® or Opera® browser.


Back to top

 

Bookmark and Share

 

Copyright © 2006-2010 justfigures.co.uk