- Home /
Question by
ina · Nov 12, 2012 at 01:46 PM ·
javascript
Prototypal vs Classical-Inheritance UnityScript
What exactly do they mean when they say that classic javascript is prototypal and UnityScript uses classical-inheritance?
Comment
You can read about prototype-based program$$anonymous$$g here: http://en.wikipedia.org/wiki/Prototype-based_program$$anonymous$$g. A comparison with a class-based program$$anonymous$$g is also provided.
One of the key differences is that UnityScript (are you refering to C#?) has classes an javascript doesn't.
I don't use javascript in unity myself. Don't really know if it really supports prototypes as regular javascript does (javascript for browsers). Anyway, if your search is about the key differences between prototype/class based program$$anonymous$$g the wikipedia link should put you on your way :).
Your answer
![](https://koobas.hobune.stream/wayback/20220613083737im_/https://answers.unity.com/themes/thub/images/avi.jpg)