I have a function to clear the user text,but the clearText function is inside the function and variable.
I find some information on Internet,but some solutions are only solve the function in variable and have not two function.
Can anyone tell me how I would call the function in function and variable,please?
And I am sorry about grammar ,English is not my mother language.I am hard to translate using google translate.
Calling a JavaScript function named in a variable I try it but got undefined.
<script>
var testing = (function(){
function clearText(){
/* call other function in this testing function */
}
/* other function */
})();
function resetInput() {
/* I call clearText() function here */
}
</script>