I have some functions: java_2Form()
, java_4Form()
, java_6Form()
. I should call one of these functions depending on my need. Can I replace all of them with only one function? For example:
function example(form_number) {
java_' + form_number + 'Form();
}
Or something similar?