I have pretty simple JS
function () { //**Expected identifier** over first bracket
window.Root = {
Models : {},
Views : {},
Comments : {}
}
}
.call(this) //**Syntax error** over dot
But getting an errors
function () - Expected identifier
. call(this) - Syntax error
Could some one explain why that errors talking place and how to fix that?