array example in js

Example 1: javascript declare array

var array = []

Example 2: functions in arrays javascript

var argsContainer = ['hello', 'you', 'there'];
var functionsContainer = [];

for (var i = 0; i < argsContainer.length; i++) {
var currentArg = argsContainer[i]; 

  functionsContainer.push(function(currentArg){
    console.log(currentArg);
  });
};

for (var i = 0; i < functionsContainer.length; i++) {
  functionsContainer[i](argsContainer[i]);
}

Example 3: array example

THIS RESPOND ARRAY:---- Array
(
    [FR_Action] => FAILED
    [FR_Message] => SC UNIC PAGE NAME NOT VALID
)