I am trying to create an array that acts like the contents page of a book. Here is what I'm trying:
var section = [someFunction(pInput.value), anotherFunction(pInput.value), function3(pInput.value)];
var sectionNum = 0;
var playerInput = function () {
var pInput = document.getElementById('input');
section[sectionNum];
};
EDIT: My functions wont execute, so when I run the code nothing happens.
To sum up, I want to know if I'm coding it wrong or if there is another way to do it.
Thanks for the help, ~Gateway
playerInputfunction.