I am creating a web app in MVC with Javascript in which i have a function which look like the following
function test() {
//this function won't do anything but create a new function inside.
function executeLot(lot1, lot2) {
//normal function execution;
}
}
now i want to call the function executeLot(1,2)
but i am not able to call this as it is located inside test()
what can i do to call executeLot from outside of the test function.
function test() { //this function won't do anything but create a new function inside. executeLot(lot1, lot2); } function executeLot(lot1, lot2) { //normal function execution; }