Is it the same javascript

i’m an experinced javascript programmer i have moded many web pages with and and used it alot. but i was wondering if all of the built in functionality of regular js is in unity’s js too. for example what if i wanted to use the push() function on an array, could i still do that in unity or is it in a different library.

thanks for reading

No, it’s not the same. I don’t know the history of why they stopped calling it UnityScript, or what the heritage is to J#. Some stuff carries over, but really it’s a new language well-tuned for superior performance requirements (of 3D games). Imagine your web browser JS trying to execute thousands of lines of code at 60 FPS. UnityScript classes are far more static - like C++ or C# classes - rather than like JavaScript prototypes.