R
Rich
Hello,
I'm "trying" to write a program that creates a multi-dimensional array. I
need to populate the array with values entered by the user.
I thought I could do something like this;
var fname = prompt ("Enter First Name:", " ");
var lname = prompt ("Enter Last Name:", " ");
var city = prompt ("Enter City you currently live in:", " ");
And then some how capture the info using something like this;
var myArray = new Array();
myArray[0] = new Array();
myArray[0][0] = "fname";
myArray[0][1] = "lname";
myArray[0][2] = "city";
But this did not work.
I am "new" and very frustrated that I don't have a clue how to make this
work. I'm going through the book "Beginning JavaScript" and I am just Not
Understanding what I need to do.
Any help would be GREATLY appreciated.
Thank you,
Rich
"If" you reply to me instead of Post to the group please remove the "No
Spam" from my email name.
I'm "trying" to write a program that creates a multi-dimensional array. I
need to populate the array with values entered by the user.
I thought I could do something like this;
var fname = prompt ("Enter First Name:", " ");
var lname = prompt ("Enter Last Name:", " ");
var city = prompt ("Enter City you currently live in:", " ");
And then some how capture the info using something like this;
var myArray = new Array();
myArray[0] = new Array();
myArray[0][0] = "fname";
myArray[0][1] = "lname";
myArray[0][2] = "city";
But this did not work.
I am "new" and very frustrated that I don't have a clue how to make this
work. I'm going through the book "Beginning JavaScript" and I am just Not
Understanding what I need to do.
Any help would be GREATLY appreciated.
Thank you,
Rich
"If" you reply to me instead of Post to the group please remove the "No
Spam" from my email name.