Hi
I am a beginner and currently trying to create a small program. I seem to be stuck on the multiplication of their elements. Eg. I have an Array with 4 different prices for 4 different products and have created 2 other Arrays to which I have assigned values through window.prompt(p arseFloat) , what I am trying to do is multiplicate the values on the parallel arrays by their corresponding indexes and keep a running total so I can...
User Profile
Collapse
-
multiplying the elements in parallel Arrays
-
thanks for your help,
I have taken a slight different route, however, I still seem to be stuck, what I am really trying to do is to create a while loop which will keep prompting me for the password if the password does not match the strings. also, if I had a parallel array, I would like to keep the index relevant to the password position. Any ideas?? Thanks again
[CODE=javascript]<script language="JavaS cript"... -
iterating through Array
Hi
I am new to all this so please excuse my ignorance. I am trying to work out how I can check if my Array contains my declared variable and if so, for the boolean to return true, however, I dont seem to be getting anywhere. I have tried the for loop and while loop as below; I would very much appreciate any help
[CODE=javascript]var customerCodes = ['sh-12', 'gw-4', 'to-0'];
var customerPasswor ds = ['tony', 'darma',...
No activity results to display
Show More
Leave a comment: