Just to make the distinction clear, when I talk about the scripting system, I’m referring to PlayCanva’s Scripting Component System and not Javascript.
PlayCanvas has two systems:
- Legacy - No longer actively supported but still used by some developers
- 2.0 - The current system (blog post here: https://blog.playcanvas.com/playcanvas-scripts-2-0/)
In terms of Javascript version, PlayCanvas is written ES5 IIRC in order to be as compatible as possible with browsers. It’s possible to use ES6 though as mentioned here: How to enable es6?