Calling javascript funtion within the same javascript file
Summary
Calling javascript funtion within the same javascript fileContent
Hello,
I would like to know how to call a javascript funtion with in another javascript function within the same javascript file.
Please code below but its not working.
Thanks,
define([], function() {
'use strict';
var PageModule = function PageModule(check) {};
/**
*
* @param{String} arg1
* @return{String}
*/
PageModule.prototype.getResult = function (arg1) {
/*alert('****');*/
/*var x = setTimeout(1000);*/
/*alert(x);*/
var x = setInterval(300);
if(1 == PageModule.prototype.check.getResult){
return 1;
}
return x;
};
/**
*
* @param{String} arg1
* @return{String}
*/
PageModule.prototype.check = function (arg1) {
return 1;
};
Tagged:
0