Attached is a screenshot of the developer console. I see a syntax error in a closure definition.
I've a JavaScript file, which has the following function. I'm loading the JavaScript file from another function and calling sampleFunction()
from it.
var sampleFuntion=function(obj){
//Statement here;
};
But Firefox shows a syntax error for the first line, which is the function declaration/definition.
I'm using Mozilla Firefox 29.0.1 on Windows 7.
What is the actual error in the code?