My javascript array has values for "chapter", "paragraph",
"sentence", and the text of this sentence.
It looks like this:
book = [
[1, 1, 1, "Hi Mary."],
[1, 1, 2, "Today's Tuesday"],
[1, 1, 3, "We came back from fishing."],
...
...
[4, 26, 9, "We then took a nap."],
[4, 26, 10, "That was Tuesday"],
[4, 27, 1, "On Wednesday it was raining."],
...
...
[8, 84, 6, "Then he waved goodbye."]
];
How do I point into this array? That is, how do I
get to and sequentially process within this array?
The only parameters I get are the 1st and last chapter
numbers, i.e., the first element in the first and last
entries (inclusive) of the range.
E.g.
How would I process from [4, , , ] through [6, , , ]?
Or, e.g.,
all of chapter 4's records?
Thank you.
"sentence", and the text of this sentence.
It looks like this:
book = [
[1, 1, 1, "Hi Mary."],
[1, 1, 2, "Today's Tuesday"],
[1, 1, 3, "We came back from fishing."],
...
...
[4, 26, 9, "We then took a nap."],
[4, 26, 10, "That was Tuesday"],
[4, 27, 1, "On Wednesday it was raining."],
...
...
[8, 84, 6, "Then he waved goodbye."]
];
How do I point into this array? That is, how do I
get to and sequentially process within this array?
The only parameters I get are the 1st and last chapter
numbers, i.e., the first element in the first and last
entries (inclusive) of the range.
E.g.
How would I process from [4, , , ] through [6, , , ]?
Or, e.g.,
all of chapter 4's records?
Thank you.