I have my JavaScript code and one file with a lot of different functions (a few hundred). I want to create a new function (same file or different file) that will randomly execute one of the existing functions.
One of the problems is there isn't a naming pattern that can be identified, I would need to have it pick any function from a file. Maybe by identifying a line and checking if the keyword function is present?
Aucun commentaire:
Enregistrer un commentaire