Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Trying to Catch up

1598824393
Michael I.
Pro
Sheet Author
With covid-19 I am taking time to update my JavaScript skills (which I haven't done for almost (10+) years) so question is what version of JavaScript is supported by roll20 is it 1.5 or 1.8.5  does it support ES5, ES6, or ES7?
1598845180
GiGs
Pro
Sheet Author
API Scripter
It does, at least in the API (sheet workers have a few gaps). I dont know the exact version of Javascript supported, but I had a quick look at feature sets, and it includes at least some features of ES9.
1598845205
The Aaron
Roll20 Production Team
API Scripter
I'll have to check for certain tomorrow, but the sandbox runs a fairly recent version of Node. I'd like to say 14.x, could be 12.x. You should be able to use pretty much the most recent version of Javascript. 
1598887633
Michael I.
Pro
Sheet Author
Thank you both, good to know, and as always thank you so much for the support you guys give. it is much appreciated.
1598891341
Andreas J.
Forum Champion
Sheet Author
Translator
GiGs said: It does, at least in the API (sheet workers have a few gaps). I don't know the exact version of JavaScript supported, but I had a quick look at feature sets, and it includes at least some features of ES9. Are these ES9 features also present in sheetworkers? And what known gaps does the sheetworkers have? I updated the Sheet Worker Scripts page to mention that they have access to the underscore library, but it would be great if we could update the documentation to mention what we have access to in sheetworker and the API.
1598920500
GiGs
Pro
Sheet Author
API Scripter
The main failing in sheet workers, is no support for the async features of recent javascript developments. Everything else I've tried has worked.
1598962070
The Aaron
Roll20 Production Team
API Scripter
Sheet workers run in the browser and will depend on what version of javascript the browser supports.  The API Sandbox runs Node v12.16.3