Search for the Article

Uncaught SyntaxError: Function statements require a function name

If you are getting this error "Uncaught SyntaxError: Function statements require a function name" while running a function on console window, try changing function explictly will help, Just put your code inside a square bracket and add a square brackets at the end of code.

Uncaught SyntaxError: Function statements require a function name

(
function() 
{ 
var x = 10; 
return x; 
}
)();