capture the text of an array code example
Example 1: javascript get array value
var array = []
array[0] = "hi"
array[1] = "dude"
var done = false
while (done == false){
var valueToFind = "hi";
var rounds = array.length;
if (rounds < 0){
return false
}
if (array[rounds] == valueToFind){
done = true
return rounds
}
rounds = rounds - 1
}
Example 2: array in js
var array_name = [item1, item2, ...];
//Used to store more than 1 items