I am making a web application, and when I started writing code in JavaScript, I get this error:
Syntax error: unexpected token "-" javascript
I am using Aptana Studio 3. I thought this was an Aptana problem, so I tried with Eclipse, but still got the same error. Eclipse shows me this error:
Cannot return from outside a function or method.
Here is my function:
function www_ebest_eu_company_node_service_task-slot-info () { this.typeMarker = 'www_ebest_eu_company_node_service_task-slot-info'; this._endDateTime = null; this._number = null; this._orderId = null; this._startDateTime = null; this._taskId = null; this._taskStatus = null; }
I have many functions like this, and for each of them I get the same error.
Does anyone have the same problem?
source share