var array_of_functions = [
first_function('a string'),
second_function('a string'),
third_function('a string'),
forth_function('a string')
]
array_of_functions[0];
Cela ne fonctionne pas comme prévu car chaque fonction du tableau est exécutée lors de la création du tableau.
Quelle est la bonne manière d’exécuter une fonction du tableau en faisant:
array_of_functions[0]; // or, array_of_functions[1] etc.
Merci!