cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

javascript classes

muhammadt3
4-Participant

javascript classes

Hi,

 

I want to create classes in the JavaScript services but when I try to declare a class in the service I get the following message.

 

'class' is available in ES (use 'esversion:') or Mozilla JS extension (use moz)

 

Screenshot_2.png

Can someone please guide me that how I can create classes in a JavaScript service ?

 

Thanks

 

1 ACCEPTED SOLUTION

Accepted Solutions

If it's server side Javascript, I don't think javascript class it's supported... Look at Rhino 1.7R4 which it's the runtime on Thingworx for server side Javascript

View solution in original post

1 REPLY 1

If it's server side Javascript, I don't think javascript class it's supported... Look at Rhino 1.7R4 which it's the runtime on Thingworx for server side Javascript

Top Tags